Make Proxy: Object.proxy_collection is been set to linked target object even when target is not a collection #72083

Closed
opened 2019-12-01 07:34:21 +01:00 by Macroni · 15 comments

System Information
Operating system: Linux
Graphics card:

Blender Version
Broken: 2.81
Worked: 2.79

In 2.79 linking in a object (‘Cube’) then making a proxy of it will create a new object
Cube_proxy with Cube_proxy.proxy pointing to Cube and Cube_proxy.proxy_group == null.

in 2.81 'Cube_proxy.proxy' points to 'Cube' and 'Cube_proxy.proxy_collection' to Cube.

Reading the docs this look like a bug

**System Information** Operating system: Linux Graphics card: **Blender Version** Broken: 2.81 Worked: 2.79 In 2.79 linking in a object (‘Cube’) then making a proxy of it will create a new object Cube_proxy with Cube_proxy.proxy pointing to Cube and Cube_proxy.proxy_group == null. in 2.81 'Cube_proxy.proxy' points to 'Cube' and 'Cube_proxy.proxy_collection' to Cube. Reading the docs this look like a bug
Author

Added subscriber: @Macroni

Added subscriber: @Macroni

Added subscribers: @mont29, @mano-wii

Added subscribers: @mont29, @mano-wii

@mont29, do you know what may be happening there?

@mont29, do you know what may be happening there?
Author

Cant tell if its intentional but looking at 2.79 code and 2.81.

there is a missing line 'gob = NULL;'

in function static int make_proxy_exec(bContext *C, wmOperator *op)

in file /blender/source/blender/editors/object/object_relations.c at line 388

Cant tell if its intentional but looking at 2.79 code and 2.81. there is a missing line 'gob = NULL;' in function static int make_proxy_exec(bContext *C, wmOperator *op) in file /blender/source/blender/editors/object/object_relations.c at line 388
Contributor

Added subscriber: @dupoxy

Added subscriber: @dupoxy

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Removed subscriber: @mont29

Removed subscriber: @mont29

This issue is difficult to investigate because this report does not follow the submission template and guidelines.
Please, make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc.
Also read these tips about bug reports.

This issue is difficult to investigate because this report does not follow the [submission template and guidelines](https://developer.blender.org/maniphest/task/edit/form/1/). Please, make a complete, valid bug report, with required info, precise description of the issue, precise steps to reproduce it, small and simple .blend and/or other files to do so if needed, etc. Also read [these tips about bug reports](https://wiki.blender.org/wiki/Process/Bug_Reports).

This issue was referenced by 005af1e274

This issue was referenced by 005af1e274599939c71dce4e9fa7e0e64e6b531f
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

Would also think it was (accidentally) removed in {be9e469ead}?
https://developer.blender.org/rBbe9e469ead227aee8d4c29b98a125cf599c5c8bb#change-pFg0VUTAHY2q

Not too familiar with proxies, but I wonder if this is responsible for a couple of Proxy reports relating to glitchy transforms in that case?

Would also think it was (accidentally) removed in {be9e469ead}? https://developer.blender.org/rBbe9e469ead227aee8d4c29b98a125cf599c5c8bb#change-pFg0VUTAHY2q Not too familiar with proxies, but I wonder if this is responsible for a couple of Proxy reports relating to glitchy transforms in that case?
Philipp Oeser changed title from Bpy Object.proxy_collection is been set to linked target object even when target is not a collection to Make Proxy: Object.proxy_collection is been set to linked target object even when target is not a collection 2020-01-22 16:04:09 +01:00
Author

For source/blender/editors/object/object_relations.c
In https://developer.blender.org/rBbe9e469ead227aee8d4c29b98a125cf599c5c8bb#change-pFg0VUTAHY2q
Looks to me like the line "gob = NULL;" at 355 was needed.
but i am not familiar with 2.81 collections architecture.

also the proxy object transform looks bugged to me
On blender-2.82-3e11c4e63b2f-linux-glibc217-x86_64 , it looks like the object transform is been applied twice for the proxy object.

i have uploaded two files test1.blend and test2.blend
test1.blend has a single cube object 'Cube'.
i linked it into test2.blend ( File -> Link )
and then created a proxy using Object -> Relations -> Make Proxy

in blender 2.79 the linked object 'Cube' and proxy object 'Cube_proxy' both have same transform
but in 2.82 the transform for Cube_proxy looks like it been applied twice
test2.blend

test1.blend

For source/blender/editors/object/object_relations.c In https://developer.blender.org/rBbe9e469ead227aee8d4c29b98a125cf599c5c8bb#change-pFg0VUTAHY2q Looks to me like the line "gob = NULL;" at 355 was needed. but i am not familiar with 2.81 collections architecture. also the proxy object transform looks bugged to me On blender-2.82-3e11c4e63b2f-linux-glibc217-x86_64 , it looks like the object transform is been applied twice for the proxy object. i have uploaded two files test1.blend and test2.blend test1.blend has a single cube object 'Cube'. i linked it into test2.blend ( File -> Link ) and then created a proxy using Object -> Relations -> Make Proxy in blender 2.79 the linked object 'Cube' and proxy object 'Cube_proxy' both have same transform but in 2.82 the transform for Cube_proxy looks like it been applied twice [test2.blend](https://archive.blender.org/developer/F8296684/test2.blend) [test1.blend](https://archive.blender.org/developer/F8296682/test1.blend)
Member

Thx @Macroni for posting the double transform testcase.
I totally agree with you here, made this a patch in D6651...
#72197 seems to also be fixed by this
Great find!

Thx @Macroni for posting the double transform testcase. I totally agree with you here, made this a patch in [D6651](https://archive.blender.org/developer/D6651)... #72197 seems to also be fixed by this Great find!
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Philipp Oeser self-assigned this 2020-01-24 09:56:57 +01:00
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
5 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#72083
No description provided.