Merge pull request #2245 from QuantumCoderQC/NavMeshNodeFix

A few small fixes to UniformsManager calss and go to location node
This commit is contained in:
Lubos Lenco 2021-07-02 19:24:34 +02:00 committed by GitHub
commit 738a217001
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View file

@ -47,24 +47,17 @@ class UniformsManager extends Trait{
if(exists) {
unifromExists = true;
}
}
if(! unifromExists) {
this.remove();
}
}
static function removeScene(){
static function removeScene() {
removeObjectFromAllMaps(Scene.active.root);
}
function removeObject() {
removeObjectFromAllMaps(object);
removeObjectFromAllMaps(object);
}
// Helper method to register float, vec3 and texture getter functions
@ -310,7 +303,6 @@ class UniformsManager extends Trait{
case Texture: texturesMap.remove(object);
}
}
}

View file

@ -10,7 +10,7 @@ class GoToLocationNode(ArmLogicTreeNode):
super(GoToLocationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketShader', 'Location')
self.add_input('NodeSocketVector', 'Location')
self.add_output('ArmNodeSocketAction', 'Out')