We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9e95f commit f2c1edeCopy full SHA for f2c1ede
cocos/cocosnode.py
@@ -337,26 +337,6 @@ def get_ancestor(self, klass):
337
if parent:
338
return parent.get_ancestor( klass )
339
340
- @property
341
- def scene(self):
342
- '''Get the Scene this cocosnode (eventually) belongs to.
343
-
344
- Is None if there is no Scene ancestor.
345
- '''
346
- # late import to avoid circular reference
347
- from cocos import scene
348
- return self.get_ancestor(scene.Scene)
349
350
351
- def layer(self):
352
- '''Get the Layer this cocosnode (eventually) belongs to.
353
354
- Is None if there is no Layer ancestor.
355
356
357
- from cocos import layer
358
- return self.get_ancestor(layer.Layer)
359
360
#
361
# Transform properties
362
0 commit comments