Drivers in Game Engine don't work for Spawned objects #45742

Closed
opened 2015-08-10 05:21:58 +02:00 by Michael Carroll · 9 comments

System Information
Mac OS X 10.10.4
NVIDIA GeForce 8600M GT 256 MB

Blender Version
Broken: 2.75a c27589e

In Blender Game Engine one situation where shape key drivers work is for bones that are parents and also deform a mesh.

The drivers fail when the armature is spawned during runtime.

Based on a attached .blend file with minimum amount of steps

Press P. Wait for second cube to spawn and watch. The first cube shape key drivers work. The second spawn cube is identical but the drivers don't work.

ShapeKeyTest.blend

**System Information** Mac OS X 10.10.4 NVIDIA GeForce 8600M GT 256 MB **Blender Version** Broken: 2.75a c27589e In Blender Game Engine one situation where shape key drivers work is for bones that are parents and also deform a mesh. The drivers fail when the armature is spawned during runtime. Based on a attached .blend file with minimum amount of steps Press P. Wait for second cube to spawn and watch. The first cube shape key drivers work. The second spawn cube is identical but the drivers don't work. [ShapeKeyTest.blend](https://archive.blender.org/developer/F222590/ShapeKeyTest.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @mkec

Added subscriber: @mkec

Added subscriber: @Sergey

Added subscriber: @Sergey

Added subscribers: @hg1, @brita, @Moguri, @dr.sybren

Added subscribers: @hg1, @brita, @Moguri, @dr.sybren

Added subscriber: @you.le

Added subscriber: @you.le

Hi, @Moguri: About https:*developer.blender.org/T45742 (Drivers in Game Engine don't work for spawned objects), I made a git bisect with this test file: http:*www.pasteall.org/blend/38719 and found that the first bad commit was: https://developer.blender.org/rBfe05f97841c0ee3e2a6e15f2252ad160fefc3509 (multi-threaded animations). After hours of investigations :) I think the problem is linked to BL_ArmatureObject::ProcessReplica()
function, m_objArma = BKE_object_copy(m_objArma); I'm not sure but if you comment this line, the drivers for spawned objects work again... BUT the bge crashes when you escape the game. I think I'm not experimented enough to fix the bug myself (I'll make some tries however :) ) but I just wanted to inform you :)

Hi, @Moguri: About https:*developer.blender.org/T45742 (Drivers in Game Engine don't work for spawned objects), I made a git bisect with this test file: http:*www.pasteall.org/blend/38719 and found that the first bad commit was: https://developer.blender.org/rBfe05f97841c0ee3e2a6e15f2252ad160fefc3509 (multi-threaded animations). After hours of investigations :) I think the problem is linked to BL_ArmatureObject::ProcessReplica() function, m_objArma = BKE_object_copy(m_objArma); I'm not sure but if you comment this line, the drivers for spawned objects work again... BUT the bge crashes when you escape the game. I think I'm not experimented enough to fix the bug myself (I'll make some tries however :) ) but I just wanted to inform you :)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Aaron Carlisle self-assigned this 2019-06-29 02:18:47 +02:00
Member

This task is being closed because the BGE has been removed in Blender 2.8.

This task is being closed because the BGE has been removed in Blender 2.8.
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#45742
No description provided.