Permalink
Commits on Oct 6, 2012
  1. Code cleanup for dual contouring

    nicholasbishop committed Jul 16, 2012
    * Remove some dualcon debug prints
    
    * Remove triangle index from dualcon projections
    
    * Simplify dualcon ModelReader interface and associated
      Octree::addTriangle code
    
    * Move some LeafNode operators to that struct
    
    * Constify various octree functions
  2. Avoid unecessary minimizer calculations in dualcon

    nicholasbishop committed Oct 6, 2012
    * The minimize() function, which solves a least-squares problem, is
      only needed for sharp remesh mode, but was being calculated for
      smooth and blocks modes as well. Disabling this calculation when
      it's not needed gives a big performance boost.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51123 954f8c5b-7b00-dc11-b283-0030488c597c
  3. Code cleanups for dualcon octree

    nicholasbishop committed Oct 6, 2012
    * Move InternalNode operators from Octree class into InternalNode
      struct
    
    * Constify various member functions
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51122 954f8c5b-7b00-dc11-b283-0030488c597c
  4. Increase maximum octree depth to 12

    nicholasbishop committed Oct 6, 2012
    Note that this is just an RNA change, underlying dualcon octree
    already supports even higher values.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51121 954f8c5b-7b00-dc11-b283-0030488c597c
  5. Cycles / OSL:

    DingTo committed Oct 6, 2012
    * OSL UI message did not show up when device type was GPU, but User Preferences were None. Also remove experimental check, more convenient for testing. 
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51120 954f8c5b-7b00-dc11-b283-0030488c597c
  6. Improve flat-shaded VBO drawing for sculpt meshes

    nicholasbishop committed Oct 6, 2012
    Separate vertex copies are now made for flat-shading, such that the
    normal is correctly flat-shaded. The element index buffer is not
    created in this case.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51119 954f8c5b-7b00-dc11-b283-0030488c597c
  7. Code cleanups for PBVH GPU buffers

    nicholasbishop committed Oct 6, 2012
    * De-duplicate GPU code to check if VBO should be used.
    
    * Add a flag to indicate if the buffer should be drawn smooth or not,
      rather than checking each time the node is drawn.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51118 954f8c5b-7b00-dc11-b283-0030488c597c
  8. Fix for a case of 'static initialization fiasco' with OSL closure var…

    lukastoenne committed Oct 6, 2012
    …iables. The parameter lists are using OIIO::TypeDesc static standards, which are also static variables. With static OSL libraries these are not initialized when the closure parameter lists are initialized, so OSL rejects the closure types.
    
    Putting static initialization into functions works just as well, but ensures the OIIO::TypeDesc access is delayed until initialization is complete.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51117 954f8c5b-7b00-dc11-b283-0030488c597c
  9. Fix for incomplete loading of liboslexec static library. This is need…

    lukastoenne committed Oct 6, 2012
    …ed in order to provide the osl_allocate_closure_component function for LLVM.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51116 954f8c5b-7b00-dc11-b283-0030488c597c
  10. added simple checker for array sizes, uses clang to parse C/C++,

    ideasman42 committed Oct 6, 2012
    Warns if an array is passed to a function where the array is declared larger, eg float[2] argument is passed function defined as float[3], (or a greater size).
    
    Existing free static checkers dont do this from what I can tell.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51113 954f8c5b-7b00-dc11-b283-0030488c597c
  11. fix writing past array bounds in imagewraposa().

    ideasman42 committed Oct 6, 2012
    also correct array sizes in othere areas.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51112 954f8c5b-7b00-dc11-b283-0030488c597c
  12. Better support for LLVM linking, needed for static OSL library.

    lukastoenne committed Oct 6, 2012
    This adds cmake code for LLVM on linux and updates the cmake code used for OSX.
    LLVM is linked like other external libraries now, by using the setup_liblinks and setup_libdirs macros instead of the PLATFORM_LINKFLAGS variable.
    The use of llvm-config for getting a list of libraries can also be simplified quite a bit.
    
    Caching the LLVM_DIRECTORY and LLVM_VERSION strings could be nicer though.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51109 954f8c5b-7b00-dc11-b283-0030488c597c
  13. Color Management: fixed loading configuration from non-ascii paths

    Nazg-Gul committed Oct 6, 2012
    Used the same hack as BLI gzip is using -- calculate short path and
    send it to OCIO library.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51108 954f8c5b-7b00-dc11-b283-0030488c597c
  14. Bugfix [#32789] (Minor) Different types used between func declaration…

    Aligorith committed Oct 6, 2012
    … and
    
    definition (EDBM_selectmode_convert())
    
    Cheers to Sebastian Nell (codemanx) for catching this.
    
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51107 954f8c5b-7b00-dc11-b283-0030488c597c
  15. toggle cut through in the knife tool now refreshes (before you had to…

    ideasman42 committed Oct 6, 2012
    … wave the mouse about to see the result).
    
    also remove print from last commit.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51106 954f8c5b-7b00-dc11-b283-0030488c597c
  16. fix [#32779] Bmesh module: assigning to bm.select_mode crashes Blende…

    ideasman42 committed Oct 6, 2012
    …r if bmesh is empty
    
    was missing set typecheck
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51105 954f8c5b-7b00-dc11-b283-0030488c597c
  17. add mball_foreachScreenElem() and use for lasso & circle selection, a…

    ideasman42 committed Oct 6, 2012
    …lso utility metaball functions to (de)select all.
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51104 954f8c5b-7b00-dc11-b283-0030488c597c
  18. add circle select for metaballs

    ideasman42 committed Oct 6, 2012
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51103 954f8c5b-7b00-dc11-b283-0030488c597c
  19. disable padding warning for DNA, gave problems with struct bounds pad…

    ideasman42 committed Oct 6, 2012
    …ding which DNA ignores.
    
    tag operator callbacks as needing their return values used. These are not directly called in many places so the inconvenience is minimal.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51102 954f8c5b-7b00-dc11-b283-0030488c597c
Commits on Oct 5, 2012
  1. Grease Pencil notifier/listener cleanup

    Dan Eicher
    Dan Eicher committed Oct 5, 2012
    As suggested by Campbell on the IRC gave grease pencil its own notifier type (NC_GPENCIL) and made the makesrna notifier functions actually update properly.
    
    Also got the #ifdef'd GreasePencil.layers.[new/remove] functions working.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51101 954f8c5b-7b00-dc11-b283-0030488c597c
  2. add armature_foreachScreenBone(), use for lasso and circle select.

    ideasman42 committed Oct 5, 2012
    also add boundbox checking for lasso select.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51093 954f8c5b-7b00-dc11-b283-0030488c597c
  3. code cleanup: de-duplicate enum.

    ideasman42 committed Oct 5, 2012
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51092 954f8c5b-7b00-dc11-b283-0030488c597c
  4. code cleanup: use functions to initialize selection user data structs…

    ideasman42 committed Oct 5, 2012
    …, use radius-squared for circle select comparisons.
    
    edge_fully_inside_rect() & edge_inside_rect() args were shorts when all callers were passing ints.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51091 954f8c5b-7b00-dc11-b283-0030488c597c
  5. Code cleanup

    Aligorith committed Oct 5, 2012
    * Added/fixed some comments
    * Swapped order that invoke/exec calls are defined in the operator definitions
    to reflect flow better
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51089 954f8c5b-7b00-dc11-b283-0030488c597c
  6. Follow Path Constraint - "Animate Path" Operator

    Aligorith committed Oct 5, 2012
    Added a convenience operator to the Follow Path constraint which adds a F-Curve
    for the path (or the operator's "fixed position" value if no path is assigned),
    with options for setting the start frame and length of motion. This makes it
    easier for common users to just set up a quick follow-path animation where the
    camera (e.g. flying around a set over certain number of frames).
    
    A key advantage of this is that it takes care of the underlying math required
    for setting up the generator curve accordingly (I've got some plans for making
    this a bit friendlier to use later). Now, animating the paths is a one-click
    operation, with the start and length properties able to be controlled using the
    operator properties.
    
    
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51087 954f8c5b-7b00-dc11-b283-0030488c597c
  7. Whitespace edits

    Aligorith committed Oct 5, 2012
    git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@51086 954f8c5b-7b00-dc11-b283-0030488c597c