strange result when you prefix 0 to any value in all input fields #19264

Closed
opened 2009-08-31 10:47:14 +02:00 by kino · 5 comments

%%%Hi
last svn linux compiled with cmake
in any input field if you enter a value
with prefix 0 when you press enter the
value change
e.g. 0800 in the SizeX resolution Format Panel become 4
try with other value

01 --> 4
02 --> 4
03 --> 4
04 --> 4
05 --> 5
06 --> 6
07 --> 7
08 --> 4
09 --> 4
010 --> 8

sorry maybe i missed some features or prefixing
any value with 0 (zero) mean a input with different base

sorry for my english and if this is not a bug
but i couldnt find any reference to this
behaviour in the devel and commit ml or google

thk's for your work

ciao%%%

%%%Hi last svn linux compiled with cmake in any input field if you enter a value with prefix 0 when you press enter the value change e.g. 0800 in the SizeX resolution Format Panel become 4 try with other value 01 --> 4 02 --> 4 03 --> 4 04 --> 4 05 --> 5 06 --> 6 07 --> 7 08 --> 4 09 --> 4 010 --> 8 sorry maybe i missed some features or prefixing any value with 0 (zero) mean a input with different base sorry for my english and if this is not a bug but i couldnt find any reference to this behaviour in the devel and commit ml or google thk's for your work ciao%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Member

%%%This is a generic request to test your bug report and see if it is still an issue in 2.5alpha2 if so please let me know by making a comment in this report ie 'also in 2.5alpha2' and I will add it to the 2.5 bug list.%%%

%%%This is a generic request to test your bug report and see if it is still an issue in 2.5alpha2 if so please let me know by making a comment in this report ie 'also in 2.5alpha2' and I will add it to the 2.5 bug list.%%%
Author

%%%Hi Tom thanks for reply!
compiled the last svn linux with scons
and mac osx 10.5.8 intel from graphicall svn 27639
when i insert a value with the 0 prefix
in the transform panel the value do not change
but in the console i have the some errors linux and osx

with the default scene select the cube press N and insert
value prefixed by 0 (zero), here afre the case for Loc/Rot/Scale

kino:MacOS kino$ ./blender
guessing './blender' == '/Users/kino/Desktop/darwin-x86_64/blender.app/Contents/MacOS/blender'
found bundled python: /Users/kino/Desktop/darwin-x86_64/blender.app/Contents/MacOS/.blender/python

File "<string>", line 1
05
  ^

SyntaxError: invalid token

location::-1

location::-1

File "<string>", line 1
  (06)*0.0174533,
    ^

SyntaxError: invalid token

location::-1

location::-1

File "<string>", line 1
06
  ^

SyntaxError: invalid token

location::-1

location::-1

%%%

%%%Hi Tom thanks for reply! compiled the last svn linux with scons and mac osx 10.5.8 intel from graphicall svn 27639 when i insert a value with the 0 prefix in the transform panel the value do not change but in the console i have the some errors linux and osx with the default scene select the cube press N and insert value prefixed by 0 (zero), here afre the case for Loc/Rot/Scale kino:MacOS kino$ ./blender guessing './blender' == '/Users/kino/Desktop/darwin-x86_64/blender.app/Contents/MacOS/blender' found bundled python: /Users/kino/Desktop/darwin-x86_64/blender.app/Contents/MacOS/.blender/python ``` File "<string>", line 1 ``` 05 ``` ^ ``` SyntaxError: invalid token location:<unknown location>:-1 location:<unknown location>:-1 ``` File "<string>", line 1 (06)*0.0174533, ^ ``` SyntaxError: invalid token location:<unknown location>:-1 location:<unknown location>:-1 ``` File "<string>", line 1 ``` 06 ``` ^ ``` SyntaxError: invalid token location:<unknown location>:-1 location:<unknown location>:-1 %%%

%%%This is because what you enter in fields is evaluated as a python expression. In python 2.x prefixing a number with 0 would indicate that it was in octagonal format. In python 3.x this syntax has been deprecated, so it's no longer a valid number. I don't consider this a bug really, so will close.%%%

%%%This is because what you enter in fields is evaluated as a python expression. In python 2.x prefixing a number with 0 would indicate that it was in octagonal format. In python 3.x this syntax has been deprecated, so it's no longer a valid number. I don't consider this a bug really, so will close.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#19264
No description provided.