Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-02-16Fix for pointers to auto variables returned from Python wrapper class methods.Tamito Kajiyama
The previous implementation was a quick workaround of C++ const references. Also removed the unused 'borrowed' flag from the Python wrapper of FrsMaterial.
2013-02-16Made code style clean-up and fixed a typo in a docstring.Tamito Kajiyama
2013-02-16Freestyle Python API improvements - part 4.Tamito Kajiyama
Major API updates were made as in part 3 to address code review comments. This revision focuses on Python wrappers of C++ iterators. * Most getter/setter methods were reimplemented as attributes using PyGetSetDef. * The naming of methods and attributes was fixed to follow the naming conventions of the Blender Python API (i.e., lower case + underscores for methods and attributes, and CamelCase for classes). The only irregular naming change is the following, to better indicate the functionality: - ChainingIterator: getVertex --> next_vertex * In addition, some code clean-up was done in both C++ and Python. Also duplicated definitions of predicate classes were removed.
2013-02-16Fix for copy-and-paste bugs in Id rich comparison. Also made code style ↵Tamito Kajiyama
clean-up.
2013-02-15Fix compilation on linux (with gcc4.7).Bastien Montagne
Without const, I had the following error: /home/i7deb64/blender-2.5-svn/__work__/freestyle/source/blender/freestyle/intern/python/BPy_ViewMap.cpp: In function ‘PyObject* ViewMap_scene_bbox_get(BPy_ViewMap*, void*)’: /home/i7deb64/blender-2.5-svn/__work__/freestyle/source/blender/freestyle/intern/python/BPy_ViewMap.cpp:120:54: error: invalid initialization of non-const reference of type ‘BBox<VecMat::Vec3<double> >&’ from an rvalue of type ‘BBox<VecMat::Vec3<double> >’ In file included from /home/i7deb64/blender-2.5-svn/__work__/freestyle/source/blender/freestyle/intern/python/BPy_ViewMap.cpp:3:0: /home/i7deb64/blender-2.5-svn/__work__/freestyle/source/blender/freestyle/intern/python/BPy_Convert.h:81:12: error: in passing argument 1 of ‘PyObject* BPy_BBox_from_BBox(BBox<VecMat::Vec3<double> >&)’ /home/i7deb64/blender-2.5-svn/__work__/freestyle/source/blender/freestyle/intern/python/BPy_ViewMap.cpp:121:1: warning: control reaches end of non-void function [-Wreturn-type] make[2]: *** [source/blender/freestyle/CMakeFiles/bf_freestyle.dir/intern/python/BPy_ViewMap.cpp.o] Erreur 1
2013-02-15Minor coding style clean-up.Tamito Kajiyama
2013-02-15Freestyle Python API improvements - part 3.Tamito Kajiyama
Major API updates were made to address code review comments. This revision mostly focuses on Python wrappers of C++ 0D and 1D elements (i.e., Interface0D and Interface1D, as well as their subclasses). * Most getter/setter methods were reimplemented as attributes using PyGetSetDef. Vector attributes are now implemented based on mathutils callbacks. Boolean attributes now only accept boolean values. * The __getitem__ method was removed and the Sequence protocol was used instead. * The naming of methods and attributes was fixed to follow the naming conventions of the Blender Python API (i.e., lower case + underscores for methods and attributes, and CamelCase for classes). Some naming inconsistency within the Freestyle Python API was also addressed. * The Freestyle API had a number of method names including prefix/suffix "A" and "B", and their meanings were inconsistent (i.e., referring to different things depending on the classes). The names with these two letters were replaced with more straightforward names. Also some attribute names were changed so as to indicate the type of the value (e.g., FEdge.next_fedge instead of FEdge.next_edge) in line with other names explicitly indicating what the value is (e.g., SVertex.viewvertex). * In addition, some code clean-up was done in both C++ and Python. Notes: In summary, the following irregular naming changes were made through this revision (those resulting from regular changes of naming conventions are not listed): - CurvePoint: {A,B} --> {first,second}_svertex - FEdge: vertex{A,B} --> {first,second}_svertex - FEdge: {next,previous}Edge --> {next,previous}_fedge - FEdgeSharp: normal{A,B} --> normal_{right,left} - FEdgeSharp: {a,b}FaceMark --> face_mark_{right,left} - FEdgeSharp: {a,b}Material --> material_{right,left} - FEdgeSharp: {a,b}MaterialIndex --> material_index_{right,left} - FrsCurve: empty --> is_empty - FrsCurve: nSegments --> segments_size - TVertex: mate() --> get_mate() - ViewEdge: fedge{A,B} --> {first,last}_fedge - ViewEdge: setaShape, aShape --> occlude - ViewEdge: {A,B} --> {first,last}_viewvertex - ViewMap: getScene3dBBox --> scene_bbox
2013-02-14Fix for a static variable in BlenderStrokeRenderer::RenderStrokeRep() left afterTamito Kajiyama
quick trials of different approaches to performance improvement.
2013-02-13Fix for a crash when the Polygonization geometry modifier is used with a ↵Tamito Kajiyama
small "error" parameter value. The problem was caused by a null pointer reference in CurvePiece::error() resulting from incorrect lengths of subdivided curves calculated in CurvePiece::subdivide(). Problem report by IRIE Shinsuke with a GDB backtrace log, many thanks!
2013-02-10Merged changes in the trunk up to revision 54421.Tamito Kajiyama
Conflicts resolved: release/datafiles/startup.blend release/scripts/startup/bl_ui/properties_render.py source/blender/SConscript source/blender/blenloader/intern/readfile.c
2013-02-10revert removal of ternary operators from r54414Campbell Barton
2013-02-10correct arg order in header for isect_point_tri_v2(), Made for confusing ↵Campbell Barton
calltips.
2013-02-10Update translation extractor so ternary expressions are not merged.Campbell Barton
eg: ("A" if test else "B")
2013-02-10BGE: Splitting up the bge.types docs so they are not all on the same page. ↵Mitchell Stokes
This should make them much easier to browse.
2013-02-09Better to return default op context when we can't find a given operator ↵Bastien Montagne
(e.g. console toggling under linux does not exists).
2013-02-09Updated py ui message extraction, to find out contexts as much as possible...Bastien Montagne
2013-02-09Bunch of fixes for py ui messages (all those using 'formating' were not ↵Bastien Montagne
translated previously, now they use bpy.app.translations.pgettext). Also pleas avoid complex py statements in 'text' values (like 'text="foo" if cond else "bar"'), thes make message extraction script fails! And another "final point in UI message" removal!
2013-02-09Translation of 'text' parameter of UI functions: disables context search in ↵Bastien Montagne
RNA property (see comment in code for details). Also made some minor optimization.
2013-02-09Bug fix #34174Ton Roosendaal
Multilayer files saved from Maya (and I bet others) store the 'primary' layer without layer or pass name, just as R G B A. Allows viewers to show stuff too, I guess. Blender now reads this as well, just allowing an empty string for the layer and pass.
2013-02-09[#33437](partial fix) Collada: importing a scene changes units. Added an ↵Gaia Clary
option to disable unit settings during import.
2013-02-09add beauty option for triangle fill since you might want to use the initial ↵Campbell Barton
scanfill result.
2013-02-09omit warning about startup.blend being missing when loading with ↵Campbell Barton
'--factory-startup'
2013-02-09Bug fix #34157Ton Roosendaal
Tss tss! :) This bug (since Jan 26) made Material options get cleared on using GE once.
2013-02-09rigidbody: Add missing updates for rigidbody operatorsSergej Reich
Fixes cache not being invalidated when using change collision shape and calculate mass operators.
2013-02-09rigidbody: Fix force field changes not invalidating cacheSergej Reich
2013-02-09rigidbody: Relink constraints when duplicating objectsSergej Reich
This will preserve constraint <-> rigid body realationships so constraint setups aren't broken after duplication. Based on a patch by Brandon Hechinger (jaggz), thanks.
2013-02-09rigidbody: Don't use icons for constraint typeSergej Reich
We don't have proper icons yet.
2013-02-09improve beauty-fill tool for non-flat triangles.Campbell Barton
Project the triangle pair into 2d coords before measuring. before/after - http://www.graphicall.org/ftp/ideasman42/beauty_fill_fix.png
2013-02-09fix for is_quad_convex_v3(), getting the dominant axis wasn't accurate ↵Campbell Barton
enough in some cases and would make beauty fill fail. now rotate the coords before calculation.
2013-02-09code cleanup: use const for matrix functions vector args.Campbell Barton
2013-02-09BGE: Fix to make KX_CharacterWrapper.jumpCount work a bit smoother. ↵Mitchell Stokes
Previously jumpCount was only getting reset to 0 if the character was on the ground while jump() was being called. This works alright internally for double jumping, but it made things awkward if a user wanted to check jumpCount before calling jump() (i.e., before jumpCount was updated).
2013-02-09fixed: [#34080] import of COLLADA breaks on '#' in filepathGaia Clary
2013-02-08[#33955] Collada Model Import Hangs Blender. Optimized Object import for ↵Gaia Clary
better performance. Added logging messages
2013-02-08disable translations for some python buttons.Campbell Barton
2013-02-08Corrections to alpha pipeline do_versionsSergey Sharybin
Basically they're aimed to solve issues when scene with sky was used for compositing. If compo used alpha output result of current trunk would be completely different form hwo it was before. Two heuristics here: - If there's no world or world color is black, it completely equals to straight alpha mode, no further magic is needed to preserve compatibility - If scene is used as Render Layer node and something is connected to Alpha output of this node, ensure alpha mode for this scene is set to Premultiplied. Basically it shall give better compatibility and make 4K mango project just happy! :)
2013-02-08Fix build (some code before var declaration... thought my compiler checked ↵Bastien Montagne
that???).
2013-02-08Fix uilists showing data names translated (reported on bf-translations ML by ↵Bastien Montagne
Satoshi Yamasaki aka yamyam, thanks!).
2013-02-08Fix #33747: do better backwards compatibility for image transparency changes.Brecht Van Lommel
The use alpha option moved from the texture datablock to the image, and now it will duplicate the image datablock in case you have one texture using alpha and the other not.
2013-02-08Cleanup: happily remove no-more-used PY_TRANSLATE RNA prop flag, and related ↵Bastien Montagne
code (just realized that flag value was wrong, probably own typo in a previous commit :/ ). That "trick" was nice when introduced, but it became kind of a pita since we added translation contexts...
2013-02-08RNA ui API: fix long-standing annoying glitches when using 'text' property ↵Bastien Montagne
of UI functions: * No context-aware at all. * Always translated (when i18n was enabled). Now, it will try tu use RNA struct/property context if available, unless you specify a context within optional "text_ctxt" parameter. And you can prevent translation by setting 'translate' parameter to False (is True by default). Will clean up code in a later commit (remove PROP_STRING_PY_TRANSLATE flag and related code), and also fix uilist templates to translate no more materials/textures/etc. names!
2013-02-08Fix Knife cut-through bug #34072.Howard Trickey
2013-02-08Added warning below MultiSample User Preference option for Linux systems. Ton Roosendaal
(All 8 reports in tracker for selection failures were linux...)
2013-02-08fix: #34051 Collada export crashesGaia Clary
2013-02-08fixed collada import for objects which have NO childrenGaia Clary
2013-02-08Release todo: added userpref for Mac users having "Natural Scroll" set.Ton Roosendaal
As per discussion and analysis of all trackpad usage, we now follow this convention: - Blender follows system setting for trackpad direction preference. - If you set your system to "natural" scroll, we need to invert a couple of cases in Blender we do "natural" already. Like: - view rotate (the inversed option just never feels ok) - scroll active items in list or pulldown menu (up/down is absolute) - ALT+scroll values in buttons (up/down is absolute) The new User Preference setting "Trackpad Natural" handles this. For 2.66 we only have trackpad handling for OS X... so this isn't affecting trackpad usage in Windows and Linux, which stick to be mapped to Scroll Wheel still. (Note: viewrotate now is "natural" always, changing how it worked in the past weeks).
2013-02-08use sys.platform for checking the OS.Campbell Barton
2013-02-08patch [#34163] "Zoom" in Python console startup messageCampbell Barton
from Shinsuke Irie (irie)
2013-02-08Fix #34165: Disappearing active marker label in timeline windowSergey Sharybin
Simply clamp label position from bottom.
2013-02-08Fix part #33935: Texture painting slow down with mouse, but not with tabletSergey Sharybin
Issue is solved for painting on byte buffer with default sRGB display enabled. In this case it is possible to skip any color space transform and just apply dither if needed. Still not sure if there's a regression in painting on flaots or not, will continue investigation.
2013-02-08building ghost-sdl works again.Campbell Barton