Page MenuHome

FBX export: skip special properties when exporting custom properties
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Dec 12 2018, 11:29 AM.

Details

Summary

'_RNA_UI' (and rna runtime properties) should not be included, these
would have been included as string properties causing errors on reimport

Fixes T59202

Diff Detail

Event Timeline

I have excluded rna properties as well [even though I am not 100% sure this is the right thing to do?]

Do we want to keep stuff like {'cycles_visibility', 'cycles'}?

Also sorry for not using arc (but for some reason arc is acting up [hanging/freezing] in Addons for me atm...)

Besides comments below, patch lgtm

io_scene_fbx/export_fbx_bin.py
538

Just do early return if items is empty, much simpler ;)

541

I would consider excluding any prop which name starts with _, so something like that instead:

if not k or k[:1] == "_" or k in rna_properties:

This revision is now accepted and ready to land.Dec 12 2018, 11:46 AM

Do we want to keep stuff like {'cycles_visibility', 'cycles'}?

{'cycles_visibility', 'cycles'} and similar stuff can be also thrown away I think...It only create mess in the custom properties when loaded in other 3D software

io_scene_fbx/export_fbx_bin.py
541

not sure...
I think we could/should be specific about stuff that causes problems from the blender side of things, but otherwise not enforce too much on the user... (it's possible a pipeline defines props with "_" prefix that should be kept -- even though not the best practice...)

Philipp Oeser (lichtwerk) edited the summary of this revision. (Show Details)

review by mont29

Philipp Oeser (lichtwerk) marked an inline comment as done.Dec 12 2018, 1:17 PM
This revision was automatically updated to reflect the committed changes.

@Bastien Montagne (mont29): commited this with the less restrictive behavior (we can always filter out more props later if neccessary)