Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed May 25, 2021
1 parent 0dd687f commit 246e561
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
3 changes: 1 addition & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
"A Node System to create game logic."
),
"author": "pgi, Leopold A-C (Iza Zed)",
"version": (0, 9, 9),
"version": (1, 0, 0),
"blender": (2, 91, 0),
"location": "View Menu",
"warning": "Now actually Beta",
"category": "Game Engine"
}

Expand Down
4 changes: 2 additions & 2 deletions basicnodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,9 +1228,9 @@ def draw(self, context, layout, node, text):
if self.name:
row = col.row()
row.label(text=self.name)
row.prop(self, 'use_custom', text='', icon='GREASEPENCIL')
if not game_obj_socket.is_linked:
row.prop(self, 'use_custom', text='', icon='GREASEPENCIL')
if game_object or game_obj_socket.is_linked:
# game_object = bpy.data.objects[game_object.split('NLO:')[-1]]
if not game_obj_socket.is_linked and not self.use_custom:
game = game_object.game
col.prop_search(
Expand Down
3 changes: 1 addition & 2 deletions game/bgelogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6189,8 +6189,7 @@ def get_direction(self):

def _compute_direction(self, origin, dest, local, dist):
custom_dist = self.get_socket_value(self.custom_dist)
if hasattr(origin, "worldPosition"):
start = origin.worldPosition.copy()
start = origin.worldPosition.copy() if hasattr(origin, "worldPosition") else origin
if hasattr(dest, "worldPosition"):
dest = dest.worldPosition.copy()
if local:
Expand Down
7 changes: 0 additions & 7 deletions ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,6 @@ def update_charinfo_node(self, tree, node):
tree.nodes.remove(node)

def update_ray_node(self, tree, node):
if len(node.inputs) == 6:
replacer = tree.nodes.new(node.bl_idname)
replacer.location = node.location
replacer.label = node.label
self.restore_inputs(tree, node, replacer)
self.restore_outputs(tree, node, replacer)
tree.nodes.remove(node)
if len(node.inputs) < 8:
replacer = tree.nodes.new(node.bl_idname)
replacer.location = node.location
Expand Down

0 comments on commit 246e561

Please sign in to comment.