Skip to content
Snippets Groups Projects
Commit 9c7539d4 authored by Luca Bonavita's avatar Luca Bonavita
Browse files

== game_props_visualiser ==

- api change :
  context.active_object.matrix -> context.active_object.matrix_world
parent e190317f
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ def calc_callback(self, context): ...@@ -61,7 +61,7 @@ def calc_callback(self, context):
# get matrices # get matrices
view_mat = context.space_data.region_3d.perspective_matrix view_mat = context.space_data.region_3d.perspective_matrix
ob_mat = context.active_object.matrix ob_mat = context.active_object.matrix_world
total_mat = view_mat*ob_mat total_mat = view_mat*ob_mat
# calculate location info # calculate location info
...@@ -71,7 +71,7 @@ def calc_callback(self, context): ...@@ -71,7 +71,7 @@ def calc_callback(self, context):
#ob=context.active_object #ob=context.active_object
for ob in context.selected_objects: for ob in context.selected_objects:
locs = [] locs = []
ob_mat = ob.matrix ob_mat = ob.matrix_world
total_mat = view_mat*ob_mat total_mat = view_mat*ob_mat
for p in ob.game.properties: for p in ob.game.properties:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment