Give Make Single User sensible defaults #73711

Closed
opened 2020-02-10 13:55:33 +01:00 by Alfred Morgan · 7 comments

Broken: version: 2.83 master b59adcaa36

Description:
A make single user operation should at least do something when activated. Reasonable default options should be set. I included a diff with suggested reasonable options.

Steps:
Open Blender > New fresh default file.
Duplicate default cube once or more times with ALT + D (so all the cubes share the same object data). Now we have 2 or more cubes linked.
With all cubes selected > 'Operator Search' > 'Make Single User' > 'Selected Objects'

Expected:
Unlinked Objects

Actual:
No operation

Diff:

diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c
index f9e2a2b8a1a..1c036f44cdf 100644
--- a/source/blender/editors/object/object_relations.c
+++ b/source/blender/editors/object/object_relations.c
@@ -2656,8 +2656,8 @@ void OBJECT_OT_make_single_user(wmOperatorType *ot)
   /* properties */
   ot->prop = RNA_def_enum(ot->srna, "type", type_items, MAKE_SINGLE_USER_SELECTED, "Type", "");

-  RNA_def_boolean(ot->srna, "object", 0, "Object", "Make single user objects");
-  RNA_def_boolean(ot->srna, "obdata", 0, "Object Data", "Make single user object data");
+  RNA_def_boolean(ot->srna, "object", 1, "Object", "Make single user objects");
+  RNA_def_boolean(ot->srna, "obdata", 1, "Object Data", "Make single user object data");
   RNA_def_boolean(ot->srna, "material", 0, "Materials", "Make materials local to each data-block");
   RNA_def_boolean(
       ot->srna, "animation", 0, "Object Animation", "Make animation data local to each object");
Broken: version: 2.83 master b59adcaa368 Description: A `make single user operation` should at least do something when activated. Reasonable default options should be set. I included a diff with suggested reasonable options. Steps: Open Blender > New fresh default file. Duplicate default cube once or more times with ALT + D (so all the cubes share the same object data). Now we have 2 or more cubes linked. With all cubes selected > 'Operator Search' > 'Make Single User' > 'Selected Objects' Expected: Unlinked Objects Actual: No operation Diff: ``` diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index f9e2a2b8a1a..1c036f44cdf 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -2656,8 +2656,8 @@ void OBJECT_OT_make_single_user(wmOperatorType *ot) /* properties */ ot->prop = RNA_def_enum(ot->srna, "type", type_items, MAKE_SINGLE_USER_SELECTED, "Type", ""); - RNA_def_boolean(ot->srna, "object", 0, "Object", "Make single user objects"); - RNA_def_boolean(ot->srna, "obdata", 0, "Object Data", "Make single user object data"); + RNA_def_boolean(ot->srna, "object", 1, "Object", "Make single user objects"); + RNA_def_boolean(ot->srna, "obdata", 1, "Object Data", "Make single user object data"); RNA_def_boolean(ot->srna, "material", 0, "Materials", "Make materials local to each data-block"); RNA_def_boolean( ot->srna, "animation", 0, "Object Animation", "Make animation data local to each object"); ```
Author

Added subscriber: @Zectbumo

Added subscriber: @Zectbumo

#71654 was marked as duplicate of this issue

#71654 was marked as duplicate of this issue

This issue was referenced by 50d5c03e2d

This issue was referenced by 50d5c03e2d14b852c6afd3046aa8428bede85efd

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Campbell Barton self-assigned this 2020-02-11 04:11:20 +01:00

Note that this isn't a bug strictly speaking, since the operator was working as intended.


In this case there is no obvious default action, duplicating all object data could be an expensive operation in some cases, which might not be what the user wants.

Blender's redo popup isn't useful in this case either since the changes aren't visible.

Committed an alternative change that uses a popup dialog.

*Note that this isn't a bug strictly speaking, since the operator was working as intended.* ---- In this case there is no obvious default action, duplicating all object data could be an expensive operation in some cases, which might not be what the user wants. Blender's redo popup isn't useful in this case either since the changes aren't visible. Committed an alternative change that uses a popup dialog.
Author

much better thanks.

much better thanks.
Member

Added subscribers: @lowpolysaac, @dfelinto, @lichtwerk

Added subscribers: @lowpolysaac, @dfelinto, @lichtwerk
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73711
No description provided.