renames
This commit is contained in:
parent
97d284c946
commit
58a0d996aa
|
@ -1,6 +1,6 @@
|
|||
package armory.logicnode;
|
||||
|
||||
class ReplaceNoneNode extends LogicNode {
|
||||
class DefaultIfNullNode extends LogicNode {
|
||||
|
||||
public function new(tree: LogicTree) {
|
||||
super(tree);
|
||||
|
|
|
@ -4,7 +4,7 @@ from arm.logicnode.arm_nodes import *
|
|||
class AlternateNode(ArmLogicTreeNode):
|
||||
"""Activates the outputs "0" and "1" alternating every time it is active."""
|
||||
bl_idname = 'LNAlternateNode'
|
||||
bl_label = 'Alternate'
|
||||
bl_label = 'Alternate Output'
|
||||
arm_section = 'flow'
|
||||
arm_version = 1
|
||||
|
|
@ -6,7 +6,7 @@ class IsNotNoneNode(ArmLogicTreeNode):
|
|||
|
||||
@seeNode Is None"""
|
||||
bl_idname = 'LNIsNotNoneNode'
|
||||
bl_label = 'Is Not None'
|
||||
bl_label = 'Is Not Null'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -7,7 +7,7 @@ class IsNoneNode(ArmLogicTreeNode):
|
|||
|
||||
@seeNode Is Not None"""
|
||||
bl_idname = 'LNIsNoneNode'
|
||||
bl_label = 'Is None'
|
||||
bl_label = 'Is Null'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
|
@ -3,9 +3,9 @@ from arm.logicnode.arm_nodes import *
|
|||
class NoneNode(ArmLogicTreeNode):
|
||||
"""A `null` value that can be used in comparisons and conditions."""
|
||||
bl_idname = 'LNNoneNode'
|
||||
bl_label = 'None'
|
||||
bl_label = 'Null'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(NoneNode, self).init(context)
|
||||
self.add_output('NodeSocketShader', 'None')
|
||||
self.add_output('NodeSocketShader', 'Null')
|
13
blender/arm/logicnode/miscellaneous/LN_default_if_null.py
Normal file
13
blender/arm/logicnode/miscellaneous/LN_default_if_null.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class DefaultIfNullNode(ArmLogicTreeNode):
|
||||
"""Returns the value in `Value In` if it is not `null`, otherwise the value in `Default` will be returned."""
|
||||
bl_idname = 'LNDefaultIfNullNode'
|
||||
bl_label = 'Default If Null'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(DefaultIfNullNode, self).init(context)
|
||||
self.inputs.new('NodeSocketShader', 'Value In')
|
||||
self.inputs.new('NodeSocketShader', 'Default')
|
||||
self.outputs.new('NodeSocketShader', 'Value Out')
|
|
@ -1,13 +0,0 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class ReplaceNoneNode(ArmLogicTreeNode):
|
||||
"""Returns the ´value 1´ if it is not ´null´, otherwise the ´value 2´ will be returned."""
|
||||
bl_idname = 'LNReplaceNoneNode'
|
||||
bl_label = 'Replace None'
|
||||
arm_version = 1
|
||||
|
||||
def init(self, context):
|
||||
super(ReplaceNoneNode, self).init(context)
|
||||
self.inputs.new('NodeSocketShader', 'Value 1')
|
||||
self.inputs.new('NodeSocketShader', 'Value 2')
|
||||
self.outputs.new('NodeSocketShader', 'Value')
|
Loading…
Reference in a new issue