[2.2] When exporting objects, the "Edge Split" modifier added is ignored[SOLVED]

Post Reply
User avatar
shadowyue
Posts: 100
Joined: 29 Nov 2013 17:38
Location: Canton,China
Contact:

[2.2] When exporting objects, the "Edge Split" modifier added is ignored[SOLVED]

#1 Post by shadowyue » 08 Aug 2021 10:29

This bug has existed since version 2.2. Even if the edge split modifier is added (not applied), it still needs to mark sharp edges. And sometimes, marking sharp edges can not make objects have correct light and dark shadows. However, in version 2.1 or even lower, there is no such problem. I hope to fix it as soon as possible. thanks!
[Translate by google]
Last edited by shadowyue on 09 Aug 2021 15:37, edited 1 time in total.
This is China Greater Bay Area map editor.
User avatar
Etrusan
Posts: 650
Joined: 04 Sep 2014 15:29
Location: Brno, Czech Republic
Contact:

Re: [2.2] When exporting objects, the "Edge Split" modifier added is ignored

#2 Post by Etrusan » 08 Aug 2021 10:58

When you export with both "Apply Modifiers" and "Apply Edge Split", export goes fine, but Edge Split (and/or maybe other modifiers are not applied on export).

When you export with only "Apply Edge Split"

Code: Select all

Python: Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\operators\scene.py", line 198, in invoke
    self.init()
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\operators\bases\export.py", line 126, in init
    self.disabled_modifiers = _object_utils.disable_modifiers(objs_to_export)
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\utils\object.py", line 682, in disable_modifiers
    disabled_modifiers.update(disable_modifiers(obj, modifier_type_to_disable='EDGE_SPLIT', inverse=True))
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\utils\object.py", line 667, in disable_modifiers
    for obj in objs:
TypeError: 'Object' object is not iterable

location: <unknown location>:-1

When you have no ticks

Code: Select all

Python: Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\operators\scene.py", line 198, in invoke
    self.init()
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\operators\bases\export.py", line 126, in init
    self.disabled_modifiers = _object_utils.disable_modifiers(objs_to_export)
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\utils\object.py", line 684, in disable_modifiers
    disabled_modifiers.update(disable_modifiers(obj, modifier_type_to_disable='ANY', inverse=True))
  File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\addons\io_scs_tools\utils\object.py", line 667, in disable_modifiers
    for obj in objs:
TypeError: 'Object' object is not iterable

location: <unknown location>:-1

When you have only "Apply Modifiers" export goes fine, but Edge Split (and/or maybe other modifiers are not applied on export).

Latest BT as of time of writing, Blender 2.93.2 from Blender.org
Seasonic SSR-650TD; Intel Core i5-6700K; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Crucial MX500 2TB; 3x Seagate IronWolf Pro; Corsair Force MP510 960GB; 2x 24" AOC I2481FXH; Windows 10

www.etrusan.net
User avatar
shadowyue
Posts: 100
Joined: 29 Nov 2013 17:38
Location: Canton,China
Contact:

Re: [2.2] When exporting objects, the "Edge Split" modifier added is ignored

#3 Post by shadowyue » 08 Aug 2021 12:08

@Etrusan Thanks for your answer although I don't konow the meaning of python.
But now I must apply the edge split modifer ,otherwise, even if sharp edges are marked and two options of two export panels are applied, I can't get a cube (dif.spec shader) with normal shadows.
(Will this problem only appear on prefab? Just like a special exception, the flavor with shadow applied to prefab objects cannot take effect. A shadow caster cube must be made...)
[ external image ]
[ external image ]
This is China Greater Bay Area map editor.
User avatar
Etrusan
Posts: 650
Joined: 04 Sep 2014 15:29
Location: Brno, Czech Republic
Contact:

Re: [2.2] When exporting objects, the "Edge Split" modifier added is ignored

#4 Post by Etrusan » 08 Aug 2021 13:57

I posted it so @50keda has some (hopefully) relevant info on what's the problem and when it happens.
Seasonic SSR-650TD; Intel Core i5-6700K; Gainward GTX 1060 6GB Phoenix GS; 2x Kingston HyperX Fury 8GB; 2x Crucial MX500 2TB; 3x Seagate IronWolf Pro; Corsair Force MP510 960GB; 2x 24" AOC I2481FXH; Windows 10

www.etrusan.net
User avatar
50keda
SCS Software
Posts: 1699
Joined: 07 Dec 2012 11:59

Re: [2.2] When exporting objects, the "Edge Split" modifier added is ignored

#5 Post by 50keda » 09 Aug 2021 10:32

Yep, bug due the refactoring of export code. Will be fixed today.
User avatar
50keda
SCS Software
Posts: 1699
Joined: 07 Dec 2012 11:59

Re: [2.2] When exporting objects, the "Edge Split" modifier added is ignored

#6 Post by 50keda » 09 Aug 2021 14:29

Fixed in latest v2.2 release as of now.

@shadowyue please check it out and if it works, mark this thread as resolved, thx!
Post Reply

Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 4 guests