Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25664] Remove Pack does not work in Texture panel *NEED RE-TEST*

Date:
2011-01-16 16:59
Priority:
3
State:
Closed
Submitted by:
Georg K (georg)
Assigned to:
Janne Karhu (jhk)
Category:
Interface
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Remove Pack does not work in Texture panel *NEED RE-TEST*
Detailed description
Blender 2.56a, Ubuntu 10.04

#1
It is impossible to remove a packed image via the Unpack File Icon in the texture panel, but in the UV/Image Editor it works fine, not only for images packed in the UV/Image editor but also for those packed via the texture panel.

(#2)
When I'm trying to repack the removed image, the path is being messed up: While the image originally was loaded from /home/georg/Desktop/Testbild.jpg after removing the pack Blender tells "can not get an image" but that's no surprise as it is trying to load /home/georg/Desktop/Desktop/Testbild.jpg
Don't know if that's a separate bug of relative paths or if I am just not supposed to do it this way. Step-by-step instructions to reproduce this second problem:
1) Load an image from the desktop in the texture panel
2) pack it
3) Save the blend to the desktop (saving to home/georg/ one folder above the one of the included image is the only way to prevent this issue)
4) unpack using the UV/Image editor
5) now the path show in the texture panel should

Sorry if Interface is the wrong category for this.
Attached an example file with packed image.

Followup

Message
  • Date: 2011-01-17 15:23
  • Sender: Ton Roosendaal
  • Our "pack" and "unpack" in current 2.5 lacks some work still. In several places this is not indicated even yet.
    I'll check on Janne if he likes to adopt this code for maintenance :)
  • Date: 2011-01-22 15:44
  • Sender: Janne Karhu
  • Issue #1 is now fixed, but I couldn't reproduce issue #2 on win 7, so this might be a linux issue with relative paths or it might already be fixed. So first try to get a new recent build from graphicall.org and see if the issue still exists. If it's still there please make a new bug report!
  • Date: 2011-01-26 15:19
  • Sender: Campbell Barton
  • Can you test since r34506. I could not redo but noticed some strange things here and removed 2 duplicate unpack menus and did some minor cleanup.
  • Date: 2011-01-27 21:00
  • Sender: Georg K
  • tested in r34523, Ubuntu 10.04 x64

    case a
    :
    If I load an image into an unsaved blender file from /home/georg/Desktop/ and realtive paths are active, the path is kept absolute when I'm saving the .blend to the Desktop. When I'm then unpacking and repacking the image, the path still stays absolute.



    case b:
    If I save the blend at the beginning, the path of a loaded image is relative (realtive paths selected), unpacking and repacking work flawlessly as well.



    Either way, #1 and #2 are fixed - thank you !
    I'm just not too sure if it would not be better to convert the path in case a to relative after saving the .blend, probably users would assume that behaviour.
  • Date: 2011-01-28 13:35
  • Sender: Janne Karhu
  • Great to hear both issues are now fixed!

    Converting paths between relative/absolute without the user knowing is not really nice, but instead the "relative path" option should be grayed out if the file isn't yet saved. The functionality that allows graying out operator properties (such as the "relative paths" property) is not yet implemented, but it will be at some point.
  • Date: 2011-01-28 15:07
  • Sender: Georg K
  • Yes, it's a double-edged sword, especially if "relative paths" is selected in the UserPreferences. It would probably be necessary to notify the user via the warnings box that his settings are being overridden.
 

Attached Files:

Name Date Download
RemovePack bug.blend 2011-01-16 16:59 Download

Changes:

Field Old Value Date By
status_idOpen2011-01-28 13:35jhk
close_dateNone2011-01-28 13:35jhk
StatusReopened2011-01-28 13:35jhk
status_idClosed2011-01-26 15:19campbellbarton
close_date2011-01-22 15:442011-01-26 15:19campbellbarton
summaryRemove Pack does not work in Texture panel2011-01-26 15:19campbellbarton
StatusFixed / Closed2011-01-26 15:19campbellbarton
status_idOpen2011-01-22 15:44jhk
close_dateNone2011-01-22 15:44jhk
StatusInvestigate2011-01-22 15:44jhk
assigned_tonone2011-01-17 15:23ton
StatusNew2011-01-17 15:23ton
File Added14568: RemovePack bug.blend2011-01-16 16:59georg