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-04-17display options to help with 3d printing.Campbell Barton
editmesh debug info, - overhang (with axis angle options) - wall thickness (with min/max distance) - self-intersections. access below 'Mesh Display' panel.
2013-04-17add function BKE_bmbvh_find_face_segment()Campbell Barton
given a segment, finds finds an intersecting faces from the first point to the second, needed for checking self intersections (not used yet).
2013-04-17code cleanup: bmesh bvhCampbell Barton
- remove unused members from BMBVHTree - move per-raycast vars from BMBVHTree into per-callback structs (weren't threadsafe). - simplify BKE_bmbvh_find_vert_closest().
2013-04-17add interp_v3_v3v3v3_uv() to use for use with uv value from ↵Campbell Barton
isect_ray_tri_v3(), rename tree -> bmtree for BMBVHTree.
2013-04-17text editor reload no-longer resets scroll & cursor - annoying when making ↵Campbell Barton
tweaks to UI scripts. also restrict freestyle hack to WITH_FREESTYLE define.
2013-04-16Blender Internal Render in viewportTon Roosendaal
Because of our release soon, feature has been added behind the Debug Menu. CTRL+ALT+D and set it to -1. Or commandline --debug-value -1. When debug set to -1, you can put the viewport to 'render' mode, just like for Cycles. Notes for testers: (and please no bugs in tracker for this :) - It renders without AA, MBlur, Panorama, Sequence, Composite - Only active render layer gets rendered. Select another layer will re-render. - But yes: it works for FreeStyle renders! - Also does great for local view. - BI is not well suited for incremental renders on view changes. This only works for non-raytrace scenes, or zoom in ortho or camera mode, or for Material changes. In most cases a full re-render is being done. - ESC works to stop the preview render. - Borders render as well. (CTRL+B) - Force a refresh with arrow key left/right. A lot of settings don't trigger re-render yet. Tech notes: - FreeStyle is adding a lot of temp objects/meshes in the Main database. This caused DepsGraph to trigger changes (and redraws). I've prepended the names for these temp objects with char number 27 (ESC), and made these names be ignored for tag update checking. - Fixed some bugs that were noticable with such excessive re-renders, like for opening file window, quit during renders.
2013-04-16Fix some names, and move overlay flag to overlay_flags.Antony Riakiotakis
2013-04-16fix for BKE_bmbvh_ray_cast() returning one of the vertices normals rather ↵Campbell Barton
then the face normal. also remove redundant NULL checks.
2013-04-16add distance arg to BKE_bmbvh_ray_cast(). currently unused.Campbell Barton
2013-04-16Option to hide overlay during a stroke. To enable, press the brush iconAntony Riakiotakis
next to the overlay alpha.
2013-04-16bmesh speedup for bvh building, replace SmallHash with BLI_bitmap, using a ↵Campbell Barton
hash doesn't make much sense since in most cases all vertices are accessed and the hash isn't guaranteed to be small. gives ~9x speedup to filling 'cagecos' in my own tests on a high poly mesh.
2013-04-16Fix crash when no brush is active. Reported by Francesco Siddi, on ircAntony Riakiotakis
thanks!
2013-04-16skip calling BKE_editmesh_tessface_calc() from BKE_bmbvh_new(), also quiet ↵Campbell Barton
float/double warnings.
2013-04-16Fixed compilation error with gcc 4.4 and 4.5Sergey Sharybin
Was giving structure re-declaration error, made it one typedef and struct declaration only.
2013-04-16use psys->seed for smoke random number generator, increase size of ↵Campbell Barton
MATHUTILS_TOT_CB and reduce float->double conversions.
2013-04-16code cleanup: use BKE naming conventions for functions in BKE_editmesh.h and ↵Campbell Barton
BKE_editmesh_bvh.h
2013-04-16move editmesh functions out editderivedmesh.c into editmesh.cCampbell Barton
2013-04-16move editmesh_bvh.c into blenkernel.Campbell Barton
2013-04-16Compile fixes for recent commitsAntony Riakiotakis
2013-04-16Random number generator: replace a bunch of usage of the global random numberBrecht Van Lommel
generator with a local one. It's not thread safe and will not give repeatable results, so in most cases it should not be used. Also fixes #34992 where the noise texture of a displacement modifier was not properly random in opengl animation render, because the seed got reset to a fixed value by an unrelated function while for final render it changed each frame.
2013-04-15Fix #34972: Blender crashes when Force Field-> Curve Guide is createdSergey Sharybin
Made it so where_on_path works correct when Curve does have editNurbs but no Curve->nurbs.
2013-04-15minor edits to DM_update_weight_mcol(), skip getting vars when in editmode, ↵Campbell Barton
also remove old/invalid comment.
2013-04-14fix for tangent curve flipping only doing 2d angle tests.Campbell Barton
2013-04-14code cleanup: edit-derived-mesh, define 'BMesh *bm' as local variable, avoid ↵Campbell Barton
'bmdm->em->bm' within functions.
2013-04-14fix for error in editmesh derived callbacks, emDM_getVert(), emDM_getEdge(), ↵Campbell Barton
emDM_getTessFace(). Currently the functions aren't used since they would fail have failed immediately.
2013-04-14code cleanup: rename BKE_tessmesh -> BKE_editmesh, rename ↵Campbell Barton
EditDerivedBMesh.tc -> em. ('tc' is odd name which isn't used elsewhere).
2013-04-14Mesh Drawing:Campbell Barton
Option to draw mesh vertex-weights in editmode, available from the 'Mesh Display' panel. TODO: get this to work when modifiers are applied in solid mode (texface-solidmode is working).
2013-04-13code cleanup: more minor changes for editmesh face drawing.Campbell Barton
2013-04-13code cleanup: editmesh draw functions, make face drawing more consistent.Campbell Barton
2013-04-13Replacing the node Add menu and making the toolbar usefulLukas Toenne
As some people have already noticed, the "Add" menu for nodes is a bit messy since pynodes merge. The reason for this is that the order of nodes in submenus (categories) was previously defined by the order in which all nodes are registered (at the bottom of blenkernel/intern/node.c). For the dynamic registration of node types now possible this system of defining node order along with registration is no longer viable: while it would still sort of work for C nodes, it is completely meaningless for dynamic (python) nodes, which are basically registered automatically in whatever order modules and addons are loaded, with the added complexity of unloading and reloading. To fix this problem and add a bunch of desirable features this commit replaces the C menu with a python implementation. The new menu does not rely on any particular order of types in the node registry, but instead uses a simple explicit list of all the available nodes, grouped by categories (in scripts/nodeitems_builtins.py). There are a number of additional features that become possible with this implementation: 1) Node Toolbar can be populated! The list of nodes is used to create 2 UI items for each node: 1 entry in a submenu of "Add" menu and 1 item in a node toolbar panel with basically the same functionality. Clicking a button in the toolbar will add a new node of this type, just like selecting an item in the menu. The toolbar has the advantage of having collapsible panels for each category, so users can decide if they don't need certain nodes categories and have the rest more easily accessible. 2) Each node item is a true operator call. The old Add menu is a pretty old piece of C code which doesn't even use proper operator buttons. Now there is a generic node_add operator which can be used very flexibly for adding any of the available nodes. 3) Node Items support additional settings. Each "NodeItem" consists of the basic node type plus an optional list of initial settings that shall be applied to a new instance. This gives additional flexibility for creating variants of the same node or for defining preferred initial settings. E.g. it has been requested to disable previews for all nodes except inputs, this would be simple change in the py code and much less intrusive than in C. 4) Node items can be generated with a function. A callback can be used in any category instead of the fixed list, which generates a set of items based on the context (much like dynamic enum items in bpy.props). Originally this was implemented for group nodes, because these nodes only make sense when linked to a node tree from the library data. This principle could come in handy for a number of other nodes, e.g. Image nodes could provide a similar list of node variants based on images in the library - no need to first add node, then select an image. WARNING: pynodes scripters will have to rework their "draw_add_menu" callback in node tree types, this has been removed now! It was already pretty redundant, since one can add draw functions to the Add menu just like for any other menu. In the future i'd like to improve the categories system further so scripters can use it for custom node systems too, for now just make a draw callback and attach it to the Add menu.
2013-04-13code cleanup: remove unused string formatting in bli_adddirstrings(), also ↵Campbell Barton
remove unused initializations and comment unused vars.
2013-04-13code cleanup: use `const char` for args and replace wm_keyconfig_list_find() ↵Campbell Barton
-> BLI_findstring()
2013-04-13code cleanup: warnings + styleCampbell Barton
2013-04-12Paint refactoring commit, non-disruptive (in theory :p)Antony Riakiotakis
* Fix precision overflow issue with overlay previews, * Expose alpha mask mapping to UI (still not functional but coming soon). * More overlay refactoring: Overlay now does minimal checking for texture refresh. Instead, we now have invalidation flags to set an aspect of the brush overlay as invalid. This is necessary because this way we will be able to separate and preview different brush attributes on the overlays, using different textures: These attributes/aspects are: Primary texture (main texture for sculpt, vertex, imapaint) Secondary texture (mask/alpha texture for imapaint) Cursor texture (cursor texture. It involves brush strength and curves) Modified the relevant RNA property update functions and C update callback functions to call the relevant cursor invalidation functions instead of checking every frame for multiple properties. Properties that affect this are: Image changes, if image is used by current brush, Texture slot changes, similarly Curve changes, Object mode change invalidates the cursor Paint tool change invalidates the cursor. These changes give slightly more invalidation cases than simply comparing the relevant properties each frame, but these do not occur in performance critical moments and it's a much more elegant system than adding more variables to check per frame each time we add something on the system.
2013-04-12minor edit to bake printouts which could get mixed because of \r.Campbell Barton
2013-04-12code cleanup: warnings and style.Campbell Barton
2013-04-11Fix #34956: rendering animation with audio would crash with an older ffmpegBrecht Van Lommel
after recent changes. New ffmpeg versions accept align = 0 as a parameter and will set it to 1 automatically, but older ones need to pass align = 1.
2013-04-09Fixes for sequencer effectsSergey Sharybin
- Add and subtract effects will now affect on only RGB channels, and alpha of first input is used as an alpha for the result. Also solved creepyness with straight->premul->straight conversion in byte versions of add/subtract. - Solved issue with multiply modifier, which lead to white*white not being white (was off by 1.0/255) due to wrong optimization of division by 255 with shr by 8. According to Ton this issue goes back to 2000! This fixes #34811: Wrong result of add/subtract effects
2013-04-09Fix #34932: drivers on world nodes not updating on frame changes.Brecht Van Lommel
2013-04-08Fix #34875: 0 digits of precision was not supported for FloatProperty, nowBrecht Van Lommel
you can specify precision=0 for this, and use -1 for the default 2.
2013-04-08fix for bug where notifiers could hold pointers to freed data which ↵Campbell Barton
listeners would operate on.
2013-04-082D stabilization default filter to bilinearSergey Sharybin
2013-04-08Camera stabilization fixes and improvementsSergey Sharybin
- Nearest interpolation was always used when there's no rotation for stabilization. Was a failure of optimization heuristic. - Made 2d stabilization frame acquiring threaded. This function is only used for display and sequencer which will only benefit of threads here. - Fixed bug introduced in r48749 which lead to re-making stable frame on every redraw.
2013-04-08surpport converting boundary edges to curves with BKE_mesh_to_curve(). alt+c ↵Campbell Barton
convert.
2013-04-07Fix for [#34898] Typo in error message of mathutils.VectorThomas Dinges
* Also fixed some more cases of "more then" -> "more than".
2013-04-07rigidbody: Fix/workaround for transforming rigid bodies with parentsSergej Reich
Since we use the rigid body transform when transforming rigid bodies things like parents and constraints add an offset because rigid body transforms are in global space. Now we just don't take rigid body transform into account on simulation start frame so there are no problems when doing the initial setup. The problem still exists when simulation is running of course. To properly fix this we'd have to solve parenting and constratins while taking rigid bodies into account before and after transform. We'll have to see if it's really needed, would like to avoid it though.
2013-04-06Fix for a heap-use-after-free issue, reported by Lockal in the IRC.Tamito Kajiyama
2013-04-06Part I of the Freestyle branch merger: new 'freestyle' folders.Tamito Kajiyama
This commit is the first part of a two-part merger of the soc-2008-mxcurioni (Freestyle) branch. New 'freestyle' folders were added to the source/blender/ and release/script/ directories through a couple of svn copy operations (instead of svn merge, due to broken svn:mergeinfo properties of the branch).
2013-04-06Revert change made to bilinear sampler in libmvSergey Sharybin
This made preview working but that broke internals of tracking. Namely, BlurredImageAndDerivativesChannels is giving much more blurred image because it was assuming pixel center is an integer position. Guess other parts of libmv used to suffer because of this issue. Now pixel centering happens in blender side, and libmv assumes integer position is a pixel center.
2013-04-06Pre-merger changes.soc-2008-mxcurioniTamito Kajiyama
Deprecated Freestyle-specific elements were removed from the code base, in order to address all comments from branch code reviews. https://codereview.appspot.com/7416049/ Backward compatibility won't be maintained in the following components: - Freestyle edge/face marks in old .blend files are ignored. Old .blend files can be converted by loading and saving the files using a Freestyle branch build between revision 55581 and 55842. - External style modules are no longer supported. Instead text datablocks must be used to keep style module files within .blend files. A branch build between revision 55741 and 55842 is useful for identifying the style module file names that need reconfiguring.