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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons-contrib
Commits
9c7539d4
Commit
9c7539d4
authored
Jul 27, 2010
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
No related branches found
No related tags found
No related merge requests found
Changes
1
Show 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):
...
@@ -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
:
...
...
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