AddObject doesn't work with linked objects in Blenderplayer #45597
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#45597
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
OSX 10.9.5
Blender Version
Broken: 2.60 all the way to 2.75a
Short description of error
I can't dynamically add a linked object with the AddObject Actuator in the Blenderplayer (it works with the embed BGE).
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
It works fine in the embed BGE in Blender, but in the Blenderplayer I get the error:
Warning, object "Plane" from AddObject actuator "Edit Object" is not in a hidden layer.
Note: the original object being added by the actuator is 'Cylinder', but the Blenderplayer mangles this which lead to the warning message.
Changed status to: 'Open'
Added subscriber: @dfelinto
I think I found the reason of this issue, basically in the blenderplayer any linked object is considered to be in the layer of its original file, regardless of the layer where the linked instance is in it.
Added subscriber: @ideasman42
If I add the following debug code:
I get
Object "Cylinder" layer: 2 (1)
in the embed BGE, andObject "Cylinder" layer: 1 (1)
in the Blenderplayer.@ideasman42 do you know where should I look at to find why Blenderplayer linked objects have a different
lay
than Blender objects?Added subscriber: @AngusHollands-4
Might want to check the conversion stage - BGE internal and external players have different code paths both running the engine and initialising it.
Either way it's something to fix for 2.8x. If we fix now it will introduce regression in many files. It's a nasty bug though, but at least we have a workaround.
Changed status from 'Open' to: 'Archived'
Moved to the TODO: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/GameEngine#Game_Engine
This issue was referenced by
44384c698d
Changed status from 'Archived' to: 'Resolved'