Fix to [#21938] File Browser: Not showing folders with spaces #21952
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#21952
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?
%%%This allows navigating through Reparse Points in windows Vista and 7. I'm not a c hard coder so the code may not be "clean" or it may not be totally multi-platform aware (I had a look to other code and used #ifdef WIN32 for the WIN32 platform but it may be wrong).
Also It may not work for Xp due to the use of GetFinalPathNameByHandle. Please check.
For the blender file browser to behave as the windows one the "real" folders should be masked (i.e. you only see "Usuarios" and not "Users" folder in spanish) but that may be done in other patch.
Regards,
Ignacio%%%
Changed status to: 'Open'
%%%Thanks for the patch I tried it here on Windows Vista and it works fine.
Unfortunately it doesn't work on Windows XP, so we have to find a way to make this available in newer versions of Windows only without having to create separate executables and installations.
%%%
%%%Have a look at this article on MSDN Obtaining a File Name From a File Handle http://msdn.microsoft.com/en-us/library/aa366789%28v=VS.85%29.aspx.%%%
%%%If you cannot use that to make it work on XP, use
OSVERSIONINFOW OSVersion;
ZeroMemory(&OSVersion, sizeof(OSVERSIONINFO));
OSVersion.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
GetVersionEx(&OSVersion);
If(OSVersion.dwMajorVersion >= 6)//its vista or higher
See MSDN article http://msdn.microsoft.com/en-us/library/ms724832%28v=VS.85%29.aspx%%%
%%%Thanks for the code, Richard. Unfortunately i can't compile Blender now due to the pthreads.h error so i can't try it until i fix that. Can you add it to the patch and test?%%%
%%%New patch (patch_vista.txt). Added function to check if the Windows version is one given or later so now the new code should not run for Xp and earlier (can't try so please check).%%%
%%%Hi Ignacio,
Turns out that still doesn't work on XP because blender is trying to load GetFinalPathNameByHandle() from the dll when it starts(Which doesn't exist in the XP dll so it causes a error and crash). Other than that its fine. However I did find this Tutorial http://www.dreamincode.net/forums/topic/118076-dlls-explicit-linking , I'll try it out and see if I can get it to load this way.%%%
%%%Hi Richard,
Didn't think of that. Let me know if you find something but if there is no way to skip that load two separate builds will be needed or a way to get the reparse point addres without using that function.
Maybe there is a way to fake that function when is not present in xp and earlier as it won't be used anyway, but i don't know how to do that.%%%
%%%Hi Ignacio,
Managed to get this working on Vista and not crashing on XP see updated patch here http://docs.google.com/View?id=dd299srs_31g3g7km4j. I've added in
endif
so it will build on minGW(as well as visual studio), but I doubt this is how this should be done. Other than that there aren't any other problems that I've found.%%%
%%%Hi Ignacio, Hi Richard,
I've got a bit of time on my hand in the next days or so and would like to attempt to fix this issue. Unfortunately I can't get to the updated patch on docs.google.com anymore - could you attach the latest patch here on the tracker? (I know it's been a long time...)
Cheers,
Andrea
%%%
Changed status from 'Open' to: 'Archived'
Added subscriber: @mont29
Seems time to archive this one, org report has been closed since ages too…