Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/PyPRP-HEAD/PyPRP/prp_Wizards.py   PyPRP(Download)
                oy = -(mtex.ofs[1] + 0.5 * sy - 0.5)
                # for repeating textures, wrapping modulo 1 changes nothing, makes for nicer numbers, and can correct a possible out-of-range offset
                if mtex.tex.extend == Blender.Texture.ExtendModes.REPEAT:
                    ox = math.fmod(ox, 1.0)
                    oy = math.fmod(oy, 1.0)
                oy = -(mtex.ofs[1] + 0.5 * sy - 0.5)
                # for repeating textures, wrapping modulo 1 changes nothing, makes for nicer numbers, and can correct a possible out-of-range offset
                if mtex.tex.extend == Blender.Texture.ExtendModes.REPEAT:
                    ox = math.fmod(ox, 1.0)
                    oy = math.fmod(oy, 1.0)