1vanK
1vanK
also missing "Techniques" dir in generated materials ``` ```
It is strange, but when I restart blender and reopen saved file, exporter works normally
I dont know how to reproduce this error
Immediately after the plugin is enabled in the settings ```fOptions.paths[pathType]``` is empty ``` def GetFilepath(pathType, name, fOptions): ... fullPath = rootPath if fOptions.useSubDirs: fullPath = os.path.join(fullPath, fOptions.paths[pathType]) ``` To reproduce...
it seems after ``` def register(): ... bpy.types.Scene.urho_exportsettings = bpy.props.PointerProperty(type=UrhoExportSettings) ``` current scene stay without settings
UrhoAddonPreferences has default values, but UrhoExportSettings doesn't have ``` class UrhoAddonPreferences(bpy.types.AddonPreferences): ... modelsPath: StringProperty( name = "Default Models subpath", description = "Models subpath (relative to output)", default = "Models") ```...
Why need copy settings to fOptions, tOptions, sOptions? Why not just use the settings?
``` class UrhoExportSettings def reset(self, context): ... self.useSubDirs = True self.fileOverwrite = False .... ``` can be changed to avoid mistakes ``` def reset(self, context): ... self.property_unset("useSubDirs") self.property_unset("fileOverwrite") ... ```...
Мне нравится идея отделить ресурсы редактора, но в целях сохранения обратной совместимость лучше отложить до релиза 2.0