Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons-contrib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons-contrib
Commits
9c7539d4
Commit
9c7539d4
authored
14 years ago
by
Luca Bonavita
Browse files
Options
Downloads
Patches
Plain Diff
== game_props_visualiser ==
- api change : context.active_object.matrix -> context.active_object.matrix_world
parent
e190317f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_game_props_visualiser.py
+3
-3
3 additions, 3 deletions
space_view3d_game_props_visualiser.py
with
3 additions
and
3 deletions
space_view3d_game_props_visualiser.py
+
3
−
3
View file @
9c7539d4
...
...
@@ -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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment