mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
*** empty log message ***
This commit is contained in:
parent
95f64692f4
commit
c949ed98e4
19
direct/src/extensions/Node-extensions.py
Normal file
19
direct/src/extensions/Node-extensions.py
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
"""
|
||||
Node-extensions module: contains methods to extend functionality
|
||||
of the Node class
|
||||
"""
|
||||
|
||||
def isHidden(self):
|
||||
"""Determine if a node is hidden. Just pick the first parent,
|
||||
since this is an ambiguous question for instanced nodes"""
|
||||
from PandaModules import *
|
||||
rrClass = RenderRelation.getClassType()
|
||||
if self.getNumParents(rrClass) > 0:
|
||||
arc = self.getParent(rrClass, 0)
|
||||
if arc.hasTransition(PruneTransition.getClassType()):
|
||||
return 1
|
||||
else:
|
||||
return arc.getParent().isHidden()
|
||||
else:
|
||||
return 0
|
Loading…
x
Reference in New Issue
Block a user