Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
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
Commits
c212676a
Commit
c212676a
authored
2 years ago
by
Ryan Inch
Browse files
Options
Downloads
Patches
Plain Diff
Collection Manager: Fix benign errors printed to terminal. Task: T69577
parent
2183b1d2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
object_collection_manager/__init__.py
+1
-1
1 addition, 1 deletion
object_collection_manager/__init__.py
object_collection_manager/cm_init.py
+9
-0
9 additions, 0 deletions
object_collection_manager/cm_init.py
with
10 additions
and
1 deletion
object_collection_manager/__init__.py
+
1
−
1
View file @
c212676a
...
...
@@ -6,7 +6,7 @@ bl_info = {
"
name
"
:
"
Collection Manager
"
,
"
description
"
:
"
Manage collections and their objects
"
,
"
author
"
:
"
Ryan Inch
"
,
"
version
"
:
(
2
,
2
4
,
0
),
"
version
"
:
(
2
,
2
5
,
0
),
"
blender
"
:
(
2
,
80
,
0
),
"
location
"
:
"
View3D - Object Mode (Shortcut - M)
"
,
"
warning
"
:
''
,
# used for warning icon and text in addons panel
...
...
This diff is collapsed.
Click to expand it.
object_collection_manager/cm_init.py
+
9
−
0
View file @
c212676a
...
...
@@ -116,6 +116,13 @@ def undo_redo_post_handler(dummy):
internals
.
move_active
=
None
@persistent
def
global_load_pre_handler
(
dummy
):
internals
.
move_triggered
=
False
internals
.
move_selection
.
clear
()
internals
.
move_active
=
None
def
menu_addition
(
self
,
context
):
layout
=
self
.
layout
...
...
@@ -180,6 +187,7 @@ def register_cm():
bpy
.
app
.
handlers
.
depsgraph_update_post
.
append
(
depsgraph_update_post_handler
)
bpy
.
app
.
handlers
.
undo_post
.
append
(
undo_redo_post_handler
)
bpy
.
app
.
handlers
.
redo_post
.
append
(
undo_redo_post_handler
)
bpy
.
app
.
handlers
.
load_pre
.
append
(
global_load_pre_handler
)
preferences
=
bpy
.
context
.
preferences
.
addons
[
__package__
].
preferences
if
preferences
.
enable_disable_objects_override
:
...
...
@@ -202,6 +210,7 @@ def unregister_cm():
bpy
.
app
.
handlers
.
depsgraph_update_post
.
remove
(
depsgraph_update_post_handler
)
bpy
.
app
.
handlers
.
undo_post
.
remove
(
undo_redo_post_handler
)
bpy
.
app
.
handlers
.
redo_post
.
remove
(
undo_redo_post_handler
)
bpy
.
app
.
handlers
.
load_pre
.
remove
(
global_load_pre_handler
)
del
bpy
.
types
.
Scene
.
collection_manager
...
...
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