Freestyle Python API improvements - part 8.
* Proper handling of keyword arguments was implemented in Operators and ContextFunctions, as well as in methods of Interface0D, Interface1D, Iterator, their subclasses, Noise and IntegrationType. * Operators' methods and functions in the ContextFunctions module were renamed from CamelCase to lower cases + underscores. Style modules were updated accordingly. * Additional code clean-up was also made.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from freestyle_init import *
|
||||
from Freestyle import ContextFunctions as CF
|
||||
from PredicatesU0D import *
|
||||
from PredicatesB1D import *
|
||||
from PredicatesU1D import *
|
||||
@@ -1192,7 +1193,7 @@ class pyDummyShader(StrokeShader):
|
||||
|
||||
class pyDebugShader(StrokeShader):
|
||||
def shade(self, stroke):
|
||||
fe = GetSelectedFEdgeCF()
|
||||
fe = CF.get_selected_fedge()
|
||||
id1 = fe.first_svertex.id
|
||||
id2 = fe.second_svertex.id
|
||||
#print(id1.first, id1.second)
|
||||
|
Reference in New Issue
Block a user