alicevision / Meshroom

3D Reconstruction Software
http://alicevision.org
Other
11.1k stars 1.08k forks source link

[bug] ScenePreview node works with Blender 3.6, but breaks with Blender 4.0 #2423

Open mikeedwards opened 4 months ago

mikeedwards commented 4 months ago

Describe the bug If Blender command is set to Blender 4.0, the node fails. If it is set to Blender 3.6, however, it succeeds.

To Reproduce Steps to reproduce the behavior:

  1. Go to the ScenePreview node
  2. Under the attributes tab, change Blender Command to the path for Blender 4.0
  3. Hit Compute
  4. See error in log

Expected behavior Blender 3.6 and Blender 4.0 would produce the same results.

Log

WARN (bgl): C:\Users\blender\git\blender-v400\blender.git\source\blender\python\generic\bgl.cc:2678 BPyInit_bgl: 'bgl' imported without an OpenGL backend. Please update your add-ons to use the 'gpu' module.
Blender 4.0.2 (hash 9be62e85b727 built 2023-12-05 13:01:12)
Read prefs: "C:\__________\AppData\Roaming\Blender Foundation\Blender\4.0\config\userpref.blend"
Init scene
Init compositing
Parse cameras SfM file
Load scene objects

Calling operator "bpy.ops.import_scene.obj" error, could not be found

Desktop (please complete the following and other pertinent information):

fabiencastan commented 3 months ago

Not yet merged, but this commit does the update for blender-4: https://github.com/alicevision/Meshroom/commit/167b9934db444261d18016c0cc1d7f9acbeb6e5e