mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 13:12:30 -06:00
14 lines
No EOL
474 B
Python
14 lines
No EOL
474 B
Python
from panda3d.core import NodePath, DecalEffect
|
|
import DNADoor
|
|
|
|
class DNAFlatDoor(DNADoor.DNADoor):
|
|
COMPONENT_CODE = 18
|
|
|
|
def traverse(self, nodePath, dnaStorage):
|
|
node = dnaStorage.findNode(self.getCode())
|
|
node = node.copyTo(nodePath, 0)
|
|
node.setScale(NodePath(), (1, 1, 1))
|
|
node.setPosHpr((0.5, 0, 0), (0, 0, 0))
|
|
node.setColor(self.getColor())
|
|
node.getNode(0).setEffect(DecalEffect.make())
|
|
node.flattenStrong() |