FreeCAD / FreeCAD-macros

A repository for FreeCAD macros
https://freecad.org/wiki/Macros_recipes
145 stars 134 forks source link

Making View Rotation Macro work with floats #170

Open fatihyaman661 opened 2 months ago

fatihyaman661 commented 2 months ago

I am really noob how to use git, so I couldn't manage to commit this myself. However in Puregui/viewRotation.FCMacro line 237, the entered value is changed into an integer. I couldn't see a reason to make this an integer. I have downloaded the macro and changed this line into

value = float(self.line_edits[i].text())

The code worked flawlessly and I was able to input float values as well. With this simple change the macro can be made much better.