Page MenuHome

linked library object loses particle settings
Closed, ResolvedPublic

Description

System Information
Operating system and graphics card
OSX 10.10.4 - NVIDIA GeForce GTX 680 2048 MB

Blender Version
Broken: ( 2.75a c27589e )
Worked: ( 2.74 )

Short description of error
when opening a file with a 'local' linked library object, particle settings are lost. error message pops up identifying missing library settings.

Exact steps for others to reproduce the error
create object(character) with particle settings, save file.

create new file, link scene file with object(character), link object(character) to local scene. make linked library object 'local' in object properties. save file. close file.

re-open scene file with linked object(character). warning that particle settings are missing. linked library object(character) has no particle settings.

this is going to cause serious problems. i have a character with multiple particle systems, who will appear in multiple scenes. re-importing the character mesh every time i open a file defeats the purpose of linked libraries. character needs to be local to apply armature actions within local scene file. i have tested that this process works with previous versions ( 2.74 )

Event Timeline

jim ww smith (jim_ww) raised the priority of this task from to 90.
jim ww smith (jim_ww) updated the task description. (Show Details)
jim ww smith (jim_ww) edited a custom field.

I cannot reproduce this here.
Did you test it in the latest buildbot build(Download Latest Builds)?
version 2.75 (sub 3), branch b'master', commit date b'2015-08-01' b'02:37', hash b'49f8832', b'Release'

tried latest build, still getting the same result. i did not see any other reports of this issue, so i saw no reason to assume it had been fixed. it does work under 2.74, but i am concerned about regression issues in re-saving new files with old versions.

The method that I confirmed may be wrong.
original.blend is an original file.
MakeLocal.blend is the result that tried this.

It is the procedure that I confirmed.
1.Run Blender.
2.Link the scene named OriginalScene from original.blend.
3.Choose local scene.
4.Link an object named originalCube from original.blend.
5.Carry out Make Local(All) in originalCube which linked to local Scene.
6.Save this in blend file, and load it again.


that description appears to be correct. i think the language of linked libraries is causing some confusion, so i will describe the use scenario. i have created a character in a file, with particle settings for multiple hair systems. i then create another file for an environment, and import the character as a linked scene file. from that scene file, i link the character to the environment scene. when i reload the environment file, the particle settings on the linked character object are lost.

Sergey Sharybin (sergey) lowered the priority of this task from 90 to 30.Aug 4 2015, 11:49 AM

I can not really reproduce the issue.

What exactly means "has no particle settings"?

@Campbell Barton (campbellbarton), maybe you'll have more luck reproducing the issue?

i get a LIB ERROR: Particle Settings: 'settings.name' missing from '/Path/To/Scene/File.blend', parent '<direct>'

this error is repeated for each of the particle settings.

this is on a character with multiple particle settings, all of which are now absent. i tested on a simple box with particle settings, imported into a simple scene, with the same result. perhaps it is a platform issue? the process is not new, i have been using it through multiple iterations of Blender. i considered maybe that it was an issue with corrupt preferences, as i did recently load my user preferences from my previous version, but i just reverted to default preferences, and the problem persists.

i have included the two sample files i created which exhibit this problem:

You should have told object linked to local scene to have carried out 'make local'.
However, the object in the file which you attached is linked.
Why is it that it is different from your explanation?

sorry, i thought that was clear. it is in the short description of the error. i cannot perform any actions on an object that is not local, as any armature modifiers would not function. library groups with armature proxies may be my only option now, but have proved problematic in the past, which is why i link the scene file, and link objects directly. it may be that i am using a deprecated process, but it used to work.

Will you put the snapshot every procedure what kind of procedure you operated it in to become clear?
Please use error test_01.blend which you attached.
I was not able to reproduce this problem even if I used error test_01.blend which you attached.

Has anyone been able to reproduce now?

Bastien Montagne (mont29) raised the priority of this task from 30 to 50.Aug 21 2015, 5:05 PM

I can confirm the issue, it’s caused by new usage of GHash in blend readcode (rBa8f6d51e) - that ghash is only filled with idname of linkable datablocks.

Now, particle settings are not linkable currently (not sure I understand why?). So core of the issue is that, when making local a linked object, its particlesettings remain linked - this shall not happen.

We can fix this in several ways (non of those being mutually exclusive):

  • Add non-linkable idname to read ghash (simplest solution, restores previous behavior, but allows for wrong things);
  • Make ParticleSettings linkable (do not see why they are not?)
  • In any case, I think we should try to add some check when localizing some linked data, to also systematically localize non-linkable datablocks used by that data?

@Campbell Barton (campbellbarton), @Sergey Sharybin (sergey) (and maybe @Lukas Tönne (lukastoenne) too), what do you say?