String property with sub_type =file_path gives wrong path #47529
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#47529
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?
Tested in testbuild 2,
When I navigate to file, from python panel, string property with sub_type =file_path is set to incorrect destination. This happens only if I navigate outside blend file location. So eg. my blend file is in: C:\Users\pl\Desktop
I navigate to:
c:\pagefile.sys,
the resulting string prop (sub_type =file_path) is:
'//......\pagefile.sys' but it should be c:\pagefile.sys
Worked ok in blender 2.76.
Blend file with simple panel script, and string property attached to scene:
PathBug.blend
Steps:
Changed status to: 'Open'
Added subscriber: @JoseConseco
This issue was referenced by blender/blender@adab35ba02
Changed status from 'Open' to: 'Resolved'
Added subscriber: @ideasman42
Note that
//..\..\..\file.abc
is correct, its a relative path.When you select a file, you have to toggle relative paths off.
However if you start our with an absolute path, having to always toggle off relative is rather annoying.
Committed a change so even when you have relative paths enabled by default, the Relative Path option for selecting files will be initialized from the initial file path, so selecting a new file wont change the relative/absolute state of the path.
When there is no file-path, the default is used.