Rigid Body Constraints break when copying its empty object #78953

Open
opened 2020-07-15 17:25:44 +02:00 by RedMser · 5 comments
Contributor

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14

Blender Version
Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-08 20:30, hash: 31bc76ea4e

Short description of error
Copying a rigid body constraint via CTRL+C / CTRL+V breaks it permanently (you have to remove and re-add the constraint to make it work again).

Exact steps for others to reproduce the error

  • Create a simple rigid body constraint setup. You can use this file to start: bug_rigidbodyconstraints_copy.blend
  • Select all objects
  • CTRL+C to copy
  • CTRL+V to paste
  • Move the new objects a bit to avoid clipping, and play the animation - the active object just falls down
  • Fixed by removing and manually re-creating the constraint on the Empty.001 object

This does not happen when using SHIFT+D to duplicate.


Seems like the dependency graph loses the connections between the constraint and the rigid body objects after copying.

Working (before copy): bug_rigidbodyconstraints.svg

Broken (after copy): bug_rigidbodyconstraints_copy.svg

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14 **Blender Version** Broken: version: 2.90.0 Alpha, branch: master, commit date: 2020-07-08 20:30, hash: `31bc76ea4e` **Short description of error** Copying a rigid body constraint via CTRL+C / CTRL+V breaks it permanently (you have to remove and re-add the constraint to make it work again). **Exact steps for others to reproduce the error** - Create a simple rigid body constraint setup. You can use this file to start: [bug_rigidbodyconstraints_copy.blend](https://archive.blender.org/developer/F8697301/bug_rigidbodyconstraints_copy.blend) - Select all objects - CTRL+C to copy - CTRL+V to paste - Move the new objects a bit to avoid clipping, and play the animation - the active object just falls down - Fixed by removing and manually re-creating the constraint on the Empty.001 object This does not happen when using SHIFT+D to duplicate. --- Seems like the dependency graph loses the connections between the constraint and the rigid body objects after copying. Working (before copy): ![bug_rigidbodyconstraints.svg](https://archive.blender.org/developer/F8697334/bug_rigidbodyconstraints.svg) Broken (after copy): ![bug_rigidbodyconstraints_copy.svg](https://archive.blender.org/developer/F8697335/bug_rigidbodyconstraints_copy.svg)
Author
Contributor

Added subscriber: @RedMser

Added subscriber: @RedMser
RedMser changed title from Rigid Body Constraints can not be copied (only duplicated) to Rigid Body Constraints break when copying its empty object 2020-07-15 17:26:24 +02:00

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

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Contributor

I figured out that this is caused by the empty not correctly being added back to the RigidBodyConstraints collection. image.png

A similar bug I found which is related to this (please let me know if I should open a new issue for it):

When appending the objects from the example blend file, the RigidBodyConstraints collection is not created at all, breaking the constraints until manually fixed.

I figured out that this is caused by the empty not correctly being added back to the `RigidBodyConstraints` collection. ![image.png](https://archive.blender.org/developer/F8714644/image.png) A similar bug I found which is related to this (please let me know if I should open a new issue for it): When *appending* the objects from the example blend file, the `RigidBodyConstraints` collection is not created at all, breaking the constraints until manually fixed.

Added subscriber: @mont29

Added subscriber: @mont29

Would consider this a known issue for now, this is probably rather tricky to solve...

Indeed copy internally uses append mechanism, so both issues are actually the same.

Would consider this a known issue for now, this is probably rather tricky to solve... Indeed copy internally uses append mechanism, so both issues are actually the same.
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:43 +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
3 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#78953
No description provided.