Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BlenderPhi
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
raas
BlenderPhi
Commits
3c0fd287
Commit
3c0fd287
authored
3 years ago
by
Campbell Barton
Browse files
Options
Downloads
Plain Diff
Merge branch 'blender-v3.1-release'
parents
06bc20f6
74611e35
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
release/scripts/startup/bl_ui/space_toolsystem_common.py
+0
-3
0 additions, 3 deletions
release/scripts/startup/bl_ui/space_toolsystem_common.py
source/blender/windowmanager/intern/wm_toolsystem.c
+15
-13
15 additions, 13 deletions
source/blender/windowmanager/intern/wm_toolsystem.c
with
15 additions
and
16 deletions
release/scripts/startup/bl_ui/space_toolsystem_common.py
+
0
−
3
View file @
3c0fd287
...
@@ -1038,9 +1038,6 @@ def _activate_by_item(context, space_type, item, index, *, as_fallback=False):
...
@@ -1038,9 +1038,6 @@ def _activate_by_item(context, space_type, item, index, *, as_fallback=False):
if
props
is
None
:
if
props
is
None
:
print
(
"
Error:
"
,
gizmo_group
,
"
could not access properties!
"
)
print
(
"
Error:
"
,
gizmo_group
,
"
could not access properties!
"
)
else
:
else
:
for
key
in
props
.
bl_rna
.
properties
.
keys
():
props
.
property_unset
(
key
)
gizmo_properties
=
item
.
widget_properties
gizmo_properties
=
item
.
widget_properties
if
gizmo_properties
is
not
None
:
if
gizmo_properties
is
not
None
:
if
not
isinstance
(
gizmo_properties
,
list
):
if
not
isinstance
(
gizmo_properties
,
list
):
...
...
This diff is collapsed.
Click to expand it.
source/blender/windowmanager/intern/wm_toolsystem.c
+
15
−
13
View file @
3c0fd287
...
@@ -806,13 +806,25 @@ void WM_toolsystem_do_msg_notify_tag_refresh(bContext *C,
...
@@ -806,13 +806,25 @@ void WM_toolsystem_do_msg_notify_tag_refresh(bContext *C,
WM_toolsystem_refresh_screen_area
(
workspace
,
view_layer
,
area
);
WM_toolsystem_refresh_screen_area
(
workspace
,
view_layer
,
area
);
}
}
static
IDProperty
*
idprops_ensure_named_group
(
IDProperty
*
group
,
const
char
*
idname
)
{
IDProperty
*
prop
=
IDP_GetPropertyFromGroup
(
group
,
idname
);
if
((
prop
==
NULL
)
||
(
prop
->
type
!=
IDP_GROUP
))
{
IDPropertyTemplate
val
=
{
0
};
prop
=
IDP_New
(
IDP_GROUP
,
&
val
,
__func__
);
STRNCPY
(
prop
->
name
,
idname
);
IDP_ReplaceInGroup_ex
(
group
,
prop
,
NULL
);
}
return
prop
;
}
IDProperty
*
WM_toolsystem_ref_properties_ensure_idprops
(
bToolRef
*
tref
)
IDProperty
*
WM_toolsystem_ref_properties_ensure_idprops
(
bToolRef
*
tref
)
{
{
if
(
tref
->
properties
==
NULL
)
{
if
(
tref
->
properties
==
NULL
)
{
IDPropertyTemplate
val
=
{
0
};
IDPropertyTemplate
val
=
{
0
};
tref
->
properties
=
IDP_New
(
IDP_GROUP
,
&
val
,
"wmOperatorProperties"
);
tref
->
properties
=
IDP_New
(
IDP_GROUP
,
&
val
,
__func__
);
}
}
return
tref
->
properties
;
return
idprops_ensure_named_group
(
tref
->
properties
,
tref
->
idname
)
;
}
}
bool
WM_toolsystem_ref_properties_get_ex
(
bToolRef
*
tref
,
bool
WM_toolsystem_ref_properties_get_ex
(
bToolRef
*
tref
,
...
@@ -832,17 +844,7 @@ void WM_toolsystem_ref_properties_ensure_ex(bToolRef *tref,
...
@@ -832,17 +844,7 @@ void WM_toolsystem_ref_properties_ensure_ex(bToolRef *tref,
PointerRNA
*
r_ptr
)
PointerRNA
*
r_ptr
)
{
{
IDProperty
*
group
=
WM_toolsystem_ref_properties_ensure_idprops
(
tref
);
IDProperty
*
group
=
WM_toolsystem_ref_properties_ensure_idprops
(
tref
);
IDProperty
*
prop
=
IDP_GetPropertyFromGroup
(
group
,
idname
);
IDProperty
*
prop
=
idprops_ensure_named_group
(
group
,
idname
);
if
(
prop
==
NULL
)
{
IDPropertyTemplate
val
=
{
0
};
prop
=
IDP_New
(
IDP_GROUP
,
&
val
,
"wmGenericProperties"
);
STRNCPY
(
prop
->
name
,
idname
);
IDP_ReplaceInGroup_ex
(
group
,
prop
,
NULL
);
}
else
{
BLI_assert
(
prop
->
type
==
IDP_GROUP
);
}
RNA_pointer_create
(
NULL
,
type
,
prop
,
r_ptr
);
RNA_pointer_create
(
NULL
,
type
,
prop
,
r_ptr
);
}
}
...
...
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