inverted stroke scaling in 3D boxes

Bug #187195 reported by mlg
10
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Maximilian Albert

Bug Description

Scaling stroke option is inverted in 3D boxes:

- Create a 3D box.
- If scaling stroke is ON and a 3D box is resized then the stroke remains unchanged.
- If scaling stroke is OFF and a 3D box is resized then the stroke scales too.

Traditional forms like circle and rectangle work fine.

- xubuntu gutsy
- inkscape 0.45.1+0.46pre0-0ubuntu2 (gutsy)

Tags: 3dbox
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Can't reproduce this in Inkscape from current SVN under Fedora. (rev 17024, Jan 29). See attached screenshot and SVG.

Revision history for this message
Tom Davidson (tjd-mit) wrote :
Revision history for this message
Tom Davidson (tjd-mit) wrote :

Can you see if you have the same problem in a more recent version? If so, could you post step-by-step instructions for triggering this?

Changed in inkscape:
status: New → Incomplete
Revision history for this message
mlg (manuellg81) wrote :

Hi Tom

I deleted my home .inkscape folder to restart my inkscape settings and opened the
.svg file you attached.
The scaling OFF/ON works properly for the 3D boxes...
i realized of this by using the ctrl+click to select the different faces of the box.

I got confused because in my "Fill and Stroke" dialog box
the "width" in the "stroke style tab" is the one that does not update properly when a 3D box is selected.

To reproduce:
- Create a new document
- Create a 3D box.
- Open the Fill and Stroke dialog box
- Drag and drop any color from the palette to the stroke space in the status bar so the stroke is now visible.
- Manually change the "width" in the stroke style tab to "6 px" or any other value.
- Toggle the scaling ON/OFF
- Scale the 3D box
- When scaling stroke is ON the "width" value does not change in the Fill and Stroke dialog box.
  However, the 3D does change its stroke properly. Verify it by ctrl+click to select the different
  faces of the box.
- When scaling stroke is OFF the "width" value changes in the Fill and Stroke dialog box.
  However, the 3D keeps its stroke width properly. Verify it by ctrl+click to select the different
  faces of the box.

Also i noted a initial wrong width stroke value in a 3D box if you create a new file and i think this could also be related to the bug. To reproduce:

- Follow the steps above
- Create a new file
- Open the Fill and Stroke dialog box and select the stroke style tab
- Create a 3D box
- Drag and drop any color from the palette to the stroke space in the status bar so the
  stroke is now visible.
- At this point you can see that the "width" has a value of "6 px" as in the previous steps,
  but if you select with ctrl+click any face of the 3D box its width stroke is only "1 px".
  See attached screenshot.

I'm using the ubuntu repository and the built is from January 19 (from about dialog).
I don't see any updates in the repository so i cannot confirm the bug in a newer version.

Revision history for this message
bbyak (buliabyak) wrote :

The bug as I see it is that unlike groups, stroke width gets written into the 3dbox g element's style and gets stuck there, remaining unchanged by any scaling, and this is what gets reported by the UI. However the sides of the box get this width too, and in them it is properly scaled or unscaled depending on switch. Max, can you please look into this, to make sure 3d boxes work the same as groups in this?

Changed in inkscape:
assignee: nobody → cilix
importance: Undecided → Low
status: Incomplete → Confirmed
tags: added: 3dbox
Revision history for this message
Beluga (buovjaga) wrote :

"Toggle the scaling ON/OFF"
How do I do this step?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.