Page MenuHome

UV smart project fails for unselected active object
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 10 Pro
Graphics card: nVidia RTX 2080

Blender Version
Broken: 2.80, 11f2c65128dc
(example: 2.79b release)
(example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional)

Short description of error

App displays error screen. See screenshot.

Exact steps for others to reproduce the error

Press "u" for UV menu. Select "Smart Project." Click OK. WWIII begins and everybody dies.

Event Timeline

Cannot reproduce here. Works perfectly in the latest 2.8 beta. Can you try with a newer build?

William Reynish (billreynish) triaged this task as Needs Information from User priority.Jan 5 2019, 12:52 AM

Marking as incomplete until author has tested with newer build.

I can repro with today's git. Here are the steps

  • Open provided .blend
  • Select an empty spot on the viewport
    • At this point Circle.002 will still be 'active' but nothing will be 'selected'
  • Hit tab to go into Edit Mode (this is fine because of active)
  • Select all verts
  • Do the smart UV unwrap

This is a combination of the weird active/selected state + the operator's current implementation of only looking at selected

I can confirm that. i have the same problem.

Brecht Van Lommel (brecht) raised the priority of this task from Needs Information from User to Needs Triage by Developer.
Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.Jan 25 2019, 12:27 PM

I can confirm that I get this issue too if I follow the steps provided by rboxman.

the bug is present whit the initial cube too. it's very simple to replace:

  1. open blender
  2. the cube is select
  3. whit "A" key select none
  4. enter in edit mode whit tab
  5. select UV Smart Project

I have test it whit Linux and Windows ( linux buid blender-2.80-bf9904ec8018-linux-glibc224-x86_64)

Brecht Van Lommel (brecht) raised the priority of this task from Confirmed, Medium to Confirmed, High.Mar 13 2019, 6:42 PM
Brecht Van Lommel (brecht) renamed this task from UV Smart Project Becomes Dumb to UV smart project fails for unselected active object.Mar 13 2019, 6:52 PM

CC @Dalai Felinto (dfelinto), @Campbell Barton (campbellbarton), @Bastien Montagne (mont29): it's not clear to me how to iterate over all objects in the current mode in the Python API.

We have BKE_view_layer_array_from_objects_in_mode_params in C.

Can we add something like this, document it in the release notes and use it to fix this bug?

Not sure who best does this, but this seems to be a big hole in the API so marked as high priority.