Replies: 3 comments 6 replies
-
Could you please tell me how to remove the argument at our end as well? |
Beta Was this translation helpful? Give feedback.
6 replies
-
it's work thanks bro. |
Beta Was this translation helpful? Give feedback.
0 replies
-
fixed https://github.com/domlysz/BlenderGIS/releases/tag/229 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying out Blender 4.0, BlenderGIS 2.2.8 was imported from v3.6.5 and was accessible from the menu. But when importing a raster file as Basemap on a new plane", it threw a ValueError("1-2 args execution context is supported") exception in Blender python code ops.py, line 60, when being called from BlenderGIS, bgis_utils.py, line 107: bpy.ops.view3d.view_selected(overrideContext).
Comparing Blender source code 3.6.5 against 4.0.0 you can see, that Blender 4.0 now refuses to take the dict argument overrideContext, in fact they removed the code, which handled it due to being deprecate.
As a quick-and-dirty fix for me, I simply removed the overrideContext argument, in spite of likely losing functionality here, but it helped me so far to run the BlenderGIS addon in Blender 4.0. I ran a quick test and it behaves as expected for the things I do with it. Perhaps there are still errors in other functions. This is what I could do since I was unable to fix it in a clean way. I never before digged into any Blender (addon) source code. Maybe someone more experienced in Blender stuff can do it better.
EDIT: Of course I was using the 3.6.5 LTS version before. Corrected.
Beta Was this translation helpful? Give feedback.
All reactions