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
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ def calc_callback(self, context):
# get matrices
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
# calculate location info
......@@ -71,7 +71,7 @@ def calc_callback(self, context):
#ob=context.active_object
for ob in context.selected_objects:
locs = []
ob_mat = ob.matrix
ob_mat = ob.matrix_world
total_mat = view_mat*ob_mat
for p in ob.game.properties:
......@@ -201,4 +201,4 @@ def unregister():
if __name__ == "__main__":
register()
\ No newline at end of file
register()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment