Multi-resolution modifier does not save data when btx file and mesh do not match face/vertex count #59824

Closed
opened 2018-12-24 20:11:28 +01:00 by LapisSea · 12 comments

System Information
Operating system: Windows 10
Graphics card: GTX 970

Blender Version
Broken: daily build - December 24, e5e885d0ec, 2.8

Short description of error

When using multi resolution with external btx file, any changes are not saved if the btx poly count and actual mesh poly count is not equal. (even if only change was adding geometry)

Note:
If poly count mismatch occurs happens a warning in modifier should be displayed
Can be fixed by packing, deleting/renaming/moving original and again saving externally

Exact steps for others to reproduce the error

  • Add multi-resolution modifier with LOD of choice
  • Go in to sculpt and sculpt anything
  • Exit sculpt mode
  • Save file and pack external
  • Exit blender
  • Reopen file
  • Go to edit mode and add any geometry (such as a disconnected plane for simplicity)
  • Go in to sculpt and sculpt anything
  • save and reopen file
**System Information** Operating system: Windows 10 Graphics card: GTX 970 **Blender Version** Broken: daily build - December 24, e5e885d0ecb9, 2.8 **Short description of error** When using multi resolution with external btx file, any changes are not saved if the btx poly count and actual mesh poly count is not equal. (even if only change was adding geometry) Note: If poly count mismatch occurs happens a warning in modifier should be displayed Can be fixed by packing, deleting/renaming/moving original and again saving externally **Exact steps for others to reproduce the error** - Add multi-resolution modifier with LOD of choice - Go in to sculpt and sculpt anything - Exit sculpt mode - Save file and pack external - Exit blender - Reopen file - Go to edit mode and add any geometry (such as a disconnected plane for simplicity) - Go in to sculpt and sculpt anything - save and reopen file
Author

Added subscriber: @LapisSea

Added subscriber: @LapisSea

#60163 was marked as duplicate of this issue

#60163 was marked as duplicate of this issue

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Sergey Sharybin was assigned by Sebastian Parborg 2019-01-24 12:42:34 +01:00

I'm getting an assert with my debug build when I add a new plane:
BLI_assert failed: /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/multires_reshape.c:249, multires_reshape_vertex_from_final_data(), at 'grid_paint_mask->level == displacement_grid->level'

So I guess that we already know that the mismatch happens.
Without that assert, I can confirm that the sculpting data is not saved on the plane.

I'm getting an assert with my debug build when I add a new plane: `BLI_assert failed: /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/multires_reshape.c:249, multires_reshape_vertex_from_final_data(), at 'grid_paint_mask->level == displacement_grid->level'` So I guess that we already know that the mismatch happens. Without that assert, I can confirm that the sculpting data is not saved on the plane.

Did this work in 2.79b?

Did this work in 2.79b?

@Sergey seems to work for me in 2.79 (blender2.7 branch)

@Sergey seems to work for me in 2.79 (blender2.7 branch)

@ZedDB, getting a bit tricky to follow steps here. Mind testing with f15a5440a1 and if the issue still happens provide some basic .blend file and steps for me?

@ZedDB, getting a bit tricky to follow steps here. Mind testing with f15a5440a1 and if the issue still happens provide some basic .blend file and steps for me?

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

@Sergey That seems to have solved it for me!

@Sergey That seems to have solved it for me!

@LapisSea, the fix will be in the next nightly build. Feel free to poke us here to let us know whether the issue is still happening or resolved.

@LapisSea, the fix will be in the next nightly build. Feel free to poke us here to let us know whether the issue is still happening or resolved.
Author

Thank you! I will be building locally as soon as the commit comes out.

Thank you! I will be building locally as soon as the commit comes out.

Added subscribers: @ChuckOcheret, @capnm

Added subscribers: @ChuckOcheret, @capnm
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#59824
No description provided.