[Bf-committers] presets.py as_filename bug?
Campbell Barton
ideasman42 at gmail.com
Wed Apr 14 12:38:52 CEST 2010
perhaps this couuld be replaced with bpy.utils.clean_name() -
http://www.blender.org/documentation/250PythonDoc/bpy.utils.html?highlight=bpy.utils#bpy.utils.clean_name
On Wed, Apr 14, 2010 at 11:33 AM, Domino Marama
<domino at dominodesigns.info> wrote:
> Just spotted this browsing the .py files..
>
> In ./release/scripts/op/presets.py starting at line 35
>
> def _as_filename(self, name): # could reuse for other presets
> for char in " !@#$%^&*(){}:\";'[]<>,./?":
> name = name.replace('.', '_')
> return name.lower()
>
> shouldn't it be
>
> def _as_filename(self, name): # could reuse for other presets
> for char in " !@#$%^&*(){}:\";'[]<>,./?":
> name = name.replace(char, '_')
> return name.lower()
>
> so all the funky characters are replaced and not just '.'?
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
--
- Campbell
More information about the Bf-committers
mailing list