Obj exporter does not respect "Apply Modifiers" settings #63399
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#63399
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: GTX 1070
Blender Version
version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-04-02 19:53, hash:
a813e259d6
, type: Releasebuild date: 02/04/2019, 18:01
Short description of error
The obj exporter does not seem to respect "use_mesh_modifiers=False" It always export as if it is set to "use_mesh_modifiers=True"
Exact steps for others to reproduce the error
Add Suzanne
Add Decimate modifier to Suzanne, set the value to 0.5
Open obj exporter
Make sure apply modifiers is unchecked, Selection only is checked
Export and imported it or check it out in a 3d viewer
As you see the mesh is exported with modifiers
Added subscriber: @kursadk
Added subscriber: @rjg
Looks like
EXPORT_APPLY_MODIFIERS
is set toFalse
when the option is unchecked butto_mesh()
or another function applies the modifiers regardless.Added subscriber: @Sergey
The functions
rna_Object_to_mesh()
,rna_Main_meshes_new_from_object()
andBKE_mesh_new_from_object()
all getapply_modifiers
set tofalse
as it should be. Could it be that this is an error introduced in46eb5a0b8a
@Sergey ?Closed as duplicate of #63345
@Sergey It seems to me that
object_for_eval
is set to the result ofDEG_get_evaluated_object
which has the modifiers applied, is used incorrectly in:cage
is true, ifapply_modifiers
isn't. Thereforemesh
shouldn't beobject_for_eval
but the original mesh right?Changed status from 'Duplicate' to: 'Open'
Actually, re-opening as a stand-alone bug. It's somewhat related, but is not quite. Sorry for the noise.
@rjg, yes, but the responsible code is some lines above. Committing the fix now..
This issue was referenced by
df26f28835
Changed status from 'Open' to: 'Resolved'
I think this modifier bug was affecting other exporters as well.