Skip to content

[FIXED] Blender 5.0 Cache Folder Issue - Working Solution Attached #1004

@nickvanluyk

Description

@nickvanluyk

@domlysz

Issue

Cache folder setting doesn't work in Blender 5.0. Error: TypeError: this type doesn't support IDProperties

Cause

Blender 5.0 removed IDProperties support from AddonPreferences. The custom get/set methods in prefs.py no longer work.

Fix Summary

  • Remove custom get/set methods (lines 189-219 in prefs.py)
  • Use standard StringProperty storage
  • Add validateCacheFolder() method
  • Add helper operators for testing/setting cache folder

Modified Files

  • prefs.py (main fix)
  • core/basemaps/gpkg.py (ensure directory exists)
  • operators/view3d_mapviewer.py (add validation)

Status

✅ Fixed and tested on Blender 5.0
✅ Maintains backward compatibility
✅ Ready for integration

BlenderGIS-2210-Fixed.zip

How to Fix

Please remove the old plugin completely and then installing this one ^
Then Restart Blender and it should work.

Happy to contribute this back to the project!


Need Help or Have Issues?

If the fix doesn't work for you, please reach out:

Preferred: Discord - 5p0.0ky
Alternative: Comment here with your Discord username and I'll reach out
Email: [your email] (Note: I check email infrequently, Discord is faster)

I'm happy to help troubleshoot! Please include:

  • Your OS (Windows/Linux/macOS)
  • Blender version (exact build)
  • Any error messages from the console

Technical note: The fix replaces dictionary-style property access with standard Blender 5.0 property system while adding better validation and user feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions