'Make Single User' from the 'Operator Search' doesn't work in a new session #71654

Closed
opened 2019-11-18 12:22:10 +01:00 by Lopo Isaac · 10 comments

System Information
Operating system: Linux-5.0.0-36-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 670/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.129

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-17 21:26, hash: 6d9d24e3d4
Worked: (optional)

Short description of error
There are several ways to execute the*'Make Single User'operator: from the 'Operator Search' menu, from the menu Object > Relations > Make Single User > Object & Data, via Python...
But somehow it doesn't seem to work in a
new session* via 'Operator Search' > 'Make Single User' UNLESS you execute it first through any of the other methods (new sesion: when you close and open Blender).

Exact steps for others to reproduce the error

  • 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 behaviour:
All the cubes now have uniqueobject data (one cube has a 'Cube'mesh data, another hasCube.001, Cube.002 and so on).

Current Behaviour:
All the cubes still remain linked and share the same object data (they share the same 'Cube' mesh data and not unique 'Cube.001', 'Cube.002'... each one).

BUT:
Don't know if this helps but the 'Operator Search' > 'Make Single User' operator works as expected by following these steps:

  • Open Blender > New fresh default file.
  • Duplicate default cube once or more times with ALT + D.
  • With all cubes selected > 'Object' > 'Relations' > 'Make Single User' > 'Object Data' > 'Selected Objects'
  • The operator works as expected: all the cubes have now unique object data (Cube, Cube.001, Cube.002...).

After this the 'Operator Search' > 'Make Single User' method works fine always as expected (in this current session).

So it works from now on with any objects or even using UNDO and try it again with the same cubes. If you close Blender, open another file, revert, etc... this unexpected behaviour remains and the 'Operator Search' > 'Make Single User' method doesn't work as described.

**System Information** Operating system: Linux-5.0.0-36-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: GeForce GTX 670/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.129 **Blender Version** Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-17 21:26, hash: `6d9d24e3d4` Worked: (optional) **Short description of error** There are several ways to execute the*'Make Single User'*operator: from the *'Operator Search'* menu, from the menu *Object > Relations > Make Single User > Object & Data*, via Python... But somehow it doesn't seem to work in a*new session* via 'Operator Search' > 'Make Single User' **UNLESS** you execute it first through any of the other methods (*new sesion:* when you close and open Blender). **Exact steps for others to reproduce the error** - 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 behaviour:** All the cubes now have unique*object data* (one cube has a *'Cube'*mesh data, another has*Cube.001, Cube.002* and so on). **Current Behaviour:** All the cubes still **remain linked** and share the same *object data* (they share the same 'Cube' mesh data and not unique *'Cube.001', 'Cube.002'...* each one). **BUT:** Don't know if this helps but the 'Operator Search' > 'Make Single User' operator **works as expected** by following these steps: - Open Blender > New fresh default file. - Duplicate default cube once or more times with ALT + D. - With all cubes selected *> 'Object' > 'Relations' > 'Make Single User' > 'Object Data' > 'Selected Objects'* - The operator works as expected: all the cubes have now unique object data (*Cube, Cube.001, Cube.002...*). # After this the *'Operator Search' > 'Make Single User'* method **works fine always** as expected (in this current session). So it works from now on with any objects or even using **UNDO** and try it again **with the same cubes**. If you close Blender, open another file, revert, etc... this unexpected behaviour remains and the *'Operator Search' > 'Make Single User'* method doesn't work as described.
Author

Added subscriber: @lowpolysaac

Added subscriber: @lowpolysaac

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Dalai Felinto self-assigned this 2019-11-18 20:54:11 +01:00

This is a really good report (really, clear, good steps, ..), thanks for your time and dedication.

That said, technically this is not a bug. The Make Single User operator has plenty of options:
image.png

When calling from the search bar it doesn't have any option enabled. When calling from the menu we set a few options (Object? Material? Object Data?), and these settings are saved for the next time you call this operator.
This is the same behaviour we have in 2.79 by the way.

This is a really good report (really, clear, good steps, ..), thanks for your time and dedication. That said, technically this is not a bug. The Make Single User operator has plenty of options: ![image.png](https://archive.blender.org/developer/F8133167/image.png) When calling from the search bar it doesn't have any option enabled. When calling from the menu we set a few options (Object? Material? Object Data?), and these settings are saved for the next time you call this operator. This is the same behaviour we have in 2.79 by the way.
Author

AaAAaah! I didn't realize! (I'm so dumb!). Thanks Dalai for the explanation and for the hard work fixing and making Blender better everyday! (PD: not related but I really liked your talk in the last Blender Conference! Thanks for doing it!)

AaAAaah! I didn't realize! (I'm so dumb!). Thanks Dalai for the explanation and for the hard work fixing and making Blender better everyday! (PD: not related but I really liked your talk in the last Blender Conference! Thanks for doing it!)

Added subscriber: @Zectbumo

Added subscriber: @Zectbumo

let's add some reasonable defaults. a command that doesn't do anything by default makes no sense. here is the proposed 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");
let's add some reasonable defaults. a command that doesn't do anything by default makes no sense. here is the proposed 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"); ```
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

OKi, since #73711 (Give Make Single User sensible defaults) was resolved, this can be closed, too

OKi, since #73711 (Give Make Single User sensible defaults) was resolved, this can be closed, too
Member

Closed as duplicate of #73711

Closed as duplicate of #73711
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#71654
No description provided.